Ad
  • Custom User Avatar

    Isn't that already in the kata's description?

    Use the `getNext()` method to get the following node.
    nodePtr->getNext()
    

    I don't think you needed a wild guess at all if you read it.

  • Custom User Avatar

    the kata is very easy (much easier than a 5-kyu kata should be), but the description is lacking the methods of Node class. It was a wild guess to use getNext() method on the Node class to switch to the next node in C++. I just checked the testing code, which had setNode() and decided to use a similar getNode() method. That is not right. You need to provide the description of all the methods you built in in your custom class Node.