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.
JavaScript
In what language?
Kata needs some random cases. I have written a weird logic and it is able to clear all test cases. However, when I assert my own random test, the code fails. Coincidence, probably. But thats why I think it needs some random cases.
Can anyone explain to me why the second loop annihilates the input board arrays, even though i am giving square a copy of it using board.splice()?
Not only you
This comment is hidden because it contains spoiler information about the solution
I was confused on this as I am also used to applying list functions on strings so assumed nesting could be done in both arrays and strings. Thank you for this clarification :3
Obviously no, 2 arrays (1 nested, nested is the keyword here) in the first one, only 1 in the other.
Also another question is does [[]] has the same nesting structure as [""] or no? if yes can u further nest in strings or is this only possible with lists?
It doesn't say anything about the data type.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
My solution is not very elegant but it works good enough. Very fun kata regardless