What if this node is the last node in the list?


  • 0
    D

    I use C or C++.

    If this node is the last node of the list, then we should let the ->next of the node before it point to NULL, right?

    How can we manage to do that?


  • 0
    A

    the question is that delete a node (except the tail).


Log in to reply
 

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