Ad
  • Default User Avatar

    There seems to be an issue here. My code fails the example test, but passes the 40 random tests. Tried in Python 3.11 and 3.10.

  • Default User Avatar

    I am pretty new to this. Working in JS.

    I read about singly linked lists and tried to return some of the attributes, like length, head, node but I'm always getting "undefined" or an error. I would like to understand SLL, but whenever I use anything I read in the tutorials, I am basically hitting a brick wall here. Any tips? (I read the Wikipedia link and a few others)

  • Default User Avatar

    I think I understand :) Thanks!

  • Default User Avatar

    Sorry, I don't think I understand. I did understand that I should use "throw" instead of "return" and I tried using strings, numbers, true/false, but I always get "No/wrong exception message...
    Value is not what was expected". Note that I have just found out about throw and that I don't yet have a clear picturea as to why do we really need it :)

  • Default User Avatar

    Run Test : All good. Expected error was thrown.
    Attempt : No error message.
    Wth?