Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks you for your numbers, really appreciate it. Seems I still have a long way to go. I barely manage to get 128 attempts before my code timeouts on a 1000x1000 board.
Around 400x400 is my current limit where my code at least sometimes gets a solution before time is up. Probably going to rewrite it entirely.
I intentionally formulated my question oversimplified to not spoiler anyone. I figured the number of attempts would be a good indicator for estimating how much more efficient one's code has still to get.
Yes, you can describe one of possible approaches this way, but this description is rather oversimplified and actual difficulty is in finding the next constellation to try.
For a 1000x1000 board my solution performs 400-600 checks in the most common case, sometimes it's 2k-4k checks (roughly 1 of 5 runs), and the most troublesome I got in a hundred of attempts was ~13k.
To find a solution you basically try a queen constellation, test it, then you try another queen constellation - until you found one, right?
How many of such guesses did you need per average (just a rough estimation) until you found a solution for the 1000x1000 board?
At least it was not just me :D
more awesome!
I had the same problem -- thanks for pointing it out!
Yep, works fine now, thanks.
Hi awesomead, I have made a change that should fix everything. Please try again when you get a chance, thanks.
awesome!
Thank you very much for your quick response. I had written that part and when I wanted to rewrite it, I just deleted without writing it new.
So I thought I considered everything and it seems that then my frustration made me blind.
Now it works!
Hello, I just wanted to ask how trustworthy are the tests in JavaScript?
More than one time I've seen tests like the one beneath.
Alice has no valid word in her memory, however Bob does - namely
heme
.My code finds this word and therefore the winner is
1
(Bob). The test however claims that-1
is the correct result.Either the tests are heavily unreliable or i misunderstood the Kata completely.
Thanks for help in advance!