If you meet Runtime Error


  • 0
    Y

    Notice: Perhaps we shouldn't && don't have to { delete AnyNode } when deleting that node from the linked list. Just set its {next} to the next node's next.

    I deleted "delete now" from my code and got Accepted. Hope this help you.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.