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.
would it not also be a cat's game(no win con) before all tiles has been filled?
eg: [[1, 2, 2], [2, 1, 1], [0, 0, 2]]
In PHP, the
Node
class is more or less:All what is needed to oslve the kata is to know that class is named
Node
and that it has the methodNode nextNode()
. I will see how to make this clearer.it is not provided by the Kata for PHP. no idea what Node is
just implement your own linked list
Anyway, in every language, the method to fetch a next node is provided by the kata itself. It's not provided by any library, it comes from the code of the kata.
Having said that, it should not be really relevant how
getNext
looks inside. Everything what's important is that the only operation avaialble on nodes is "get next node", and it's sufficient to solve the problem.In what language?
I have a general question, does anyone know where the function getNext() is from and if it is possible to see the code for it or see if there are more functions available from that library?