Path: ...!news.mixmin.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!pasdenom.info!.POSTED.2a01:e0a:4ee:1ac0:38f6:b719:c555:29aa!not-for-mail From: kurtz le pirate Newsgroups: fr.comp.lang.c Subject: =?UTF-8?B?UmU6IFLDqWN1cnNpdml0w6k=?= Date: Fri, 17 Jan 2025 11:00:51 +0100 Organization: compagnie de la banquise Message-ID: References: <67869565$0$16845$426a74cc@news.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 17 Jan 2025 10:00:52 -0000 (UTC) Injection-Info: rasp.pasdenom.info; posting-account="kurtzlepirate@usenet"; posting-host="2a01:e0a:4ee:1ac0:38f6:b719:c555:29aa"; logging-data="11020"; mail-complaints-to="abuse@pasdenom.info" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:tKThHu8bkAHp+s8QSp3eh9q+ceg= sha256:HsFK9hZv8jZuZpx1h3ySmJKxE8BK4QfnhlNRG+ozFb4= sha1:Y77kwCr1uWe8HKbYBAymvrZF6VM= sha256:PZmXNF6UQpOYxv6lZQ7dfEkzeqfH6oeNrecwG0elrLg= In-Reply-To: Content-Language: en-US Bytes: 1854 Lines: 25 On 16/01/2025 11:20, Olivier Miakinen wrote: > > J'ai gardé ta fonction find_empty, même si elle n'est pas tellement efficace > puisqu'à chaque fois elle repart de [0][0]. > > typedef struct heap { > int row, col; > int num; > } heap_t; > int solve(int board[SIZE][SIZE]) { > ... > } > > Merci Olivier. Je vais étudier ça de près. -- kurtz le pirate compagnie de la banquise