The problem seems to be that your code generates coordinates outside the grid.
1 Like
Yes the problem is that. Thank you
Interesting puzzle. Very funny!
1 Like
I think a bit of feed back on why a validation test fails when submitting our solution would be nice. My first solution passed all test cases, but only passed 40% of the validation without being provided any reason why 60% of the validators failed it. So, what did I do? I optimized my code to run a tad bit faster, and suddenly 100% of the validators passed. The only reason I tried runtime optimization first was because it was easier than checking my algorithm for bugs and it passed all the test cases.
Edit: There was a bug in both submissions, but that bug didn’t stop the second submission from passing all validation tests. The bug was fixed in the third submission.