'Flash Flood Warmup' is rated '10' while 'Deluge' is 55. By intention?
My first tries were at about 27000 cycles (simple recursive approach). Then I noticed that it is always the same image, filled those 3 islands with 2's (enumerating 30 cells) and then marked all cells 0 if they are 2 or 1 otherwise. Took less than 10000 cycles. I'd call that cheating and probably not the way it was intended.
Flash Flood Warmup
I have tried to change the algorithm from trivial DFS/BFS ... I have used variant of union find on 0 regions ... and if I remember well I did the warmup with it. But for the next level I was not able to lower the cycle count enough and I have returned to the almost trivial DFS with several enhancements ... let us see what will work second next level.
-
- Posts: 9
- Joined: Sat Dec 11, 2010 11:25 pm
- Location: NO
-
- Posts: 1
- Joined: Thu Aug 04, 2022 9:25 am