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
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()?
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
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?
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