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.
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?