Ad
  • Custom User Avatar

    I have some code for generating random boards, clues and then finding one solution for the board and have done some benchmarking:

    6 x 6 takes average 76 ms to solve.
    7 x 7 takes 670 ms to solve.
    8 x 8 takes 14.95 seconds!

  • Custom User Avatar

    Ah! Thanks for the tip. It looks like my code is fast enough after all but is going into an infinite loop on the 4th "very hard" test.

  • Custom User Avatar

    Thanks for translating this, am enjoying the challenge.

    I noticed a small error in the sample tests, both of the names are the same so the second test does not run.

    Change the second skyscrapers-example-test1 -> skyscrapers-example-test2

  • Custom User Avatar

    My attempt completes four of the very hard tests but then times out. How many more tests are there, am I close to finishing?

  • Custom User Avatar
  • Custom User Avatar

    Nice. You could also use rest x here instread of subs x 1. Since you are using first pairing that with rest would seem better style.