Ad
  • Custom User Avatar

    You should have map.size()==2.

  • Custom User Avatar

    without one even being told what the public methods are

    Are you kidding? The description explicitly says you can use .getNext() to get the next node.

  • Custom User Avatar

    I have to agree. I'm a developer and I understand data structures but a node is one of the most abstract data types of them all. Without the interface somehow being exposed, or without one even being told what the public methods are here, I can see how code warriors could spend hours guessing as to what the operations to call on a node are to solve this problem. I think this Kata is an over simplistic one artificially made to be more difficult in providing the least information as possible about the ADT it wants you to work with. However, in this case I do believe that a little research goes a long way if one doesn't already have an understanding of what a node is and how to use it.