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.
All tests use the same
test_board
object forcoin_finder
andcoin_flipper
, which can be mutated to bypass the tests: see thisThis comment is hidden because it contains spoiler information about the solution
The description is mediocre, could not "make head or tail" of the actual game rules
implements a ring buffer so memory usage is proportional to length of signature not n
Scala translation
Also fixes a typo in the description.
This comment is hidden because it contains spoiler information about the solution
Your solution still passes i think.
EDIT: Nvm, in my screen it is still validated, yep doesnt work.
How is that related to the suggestion?
if you wrote your function using the sum of coins in a certain orientation mod size then it will work for some cases but break in others. is this what you have done?
my point is that it doesn't matter if the board is square. this problem is impossible for board sizes that are not powers of 2 but if it is a power of 2 it doesn't make any difference weather it is 1x64,2x32,4x16,8x8. my code on all powers of two, including odd ones.
I'm pretty sure you've no idea what I am saying.
32 which can be expressed as 2^5 is not a perfect square, not all number which can be expressed in the form of 2^n is a perfect square.
And here I am talking about the size of the board, for example size of 8 x 8 board is 64, and if the size of the board is 32, that board won't be a square.
I might do that, but any function that works in that case should work in any 2^n case. I will try and reword it to avoid confusion
i will try and make some more helpful Fail messages.
Just specify that the size of the board would be always
2^n
wheren
is even number..Loading more items...