Ad
  • Custom User Avatar

    @stellasie I'm terribly sorry for not answering before. I try to respond to questions and comments as soon as possible, but I must have missed yours. Please let me know if I still can help you (even if I'm three months late.)

    The short answer is that I don't have a preference for how you solve the task. The function should return true if it's possible in any way. In the example you mention, it clearly is possible.

  • Custom User Avatar

    Well, if you don't know which one to choose, why not try both and see if any of them works out. :-)

    Let me know if you need more hints.

  • Custom User Avatar

    This was a perfect test case for me to illustrate my problem. Works fine on everything except for that instance. That said, I don't know how to resolve it in either case.

  • Custom User Avatar

    Thanks stella for your feed :)

    Can I ask you to be a bit more specific about the parts that you think were not explained in the description, so to see if I should fix it?

  • Custom User Avatar
    public interface Node {
    	Node getNext();
    }
    

    That allowed me to code offline. Pretty trivial.