Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    The fact that objects have no attributs does not mean that they do not differ in any way form each other. They are different nodes, and you can easily check if they are the same, or different node.

    The fact that nodes have no readable property does not make the kata broken.

  • Custom User Avatar

    It's broken in php. $node->next() returns only the same object, which has nothing in it except the next method. Literally. What should I do with it if the objects don't even differ from each other in any way and it falls into an endless cycle?

      var_dump(get_object_vars($node));
      var_dump(serialize($node));
      $b = $node->getNext();
      var_dump(get_object_vars($b));
      var_dump(serialize($b));
    
    array(0) {
    }
    string(33) "O:4:"Node":1:{s:7:"*next";r:1;}"
    array(0) {
    }
    string(33) "O:4:"Node":1:{s:7:"*next";r:1;}"
    
  • Custom User Avatar

    i don't even know what this is about

  • Custom User Avatar

    find the answer was not too diffcult, solve the timeout problem was important! feel fun with this KATA

  • Custom User Avatar

    Al final lo hiciste po!

  • Custom User Avatar

    You shoul tell us the concept, because many of us are lost in this kata!

  • Default User Avatar

    Hello, I need help. I use c++ and for self-checking I wrote the Node class with similar methods myself. The problem is that the tests are running correctly on my computer (when I type in test examples), but when I test the code here, it gives a completely different value. What could this be related to?

  • Default User Avatar

    You don't need the nodes' values. They might not even have values.

  • Default User Avatar

    It doesn't depend on using the node value. The values could all be identical. The nodes don't even need to store a value inside of them.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Good question. I am struggling also with the node check.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    look more carefuly at the description : it mentions the method getNext() to get the next node. So, in order to get the next node, you can do node = node.getNext().

    the node object is given as an argument, and is an instance of a custom class defined somewhere else.
    As the challenge require you don't modify these, it does not really matter what its implementation is.

  • Loading more items...