Need Predecessor
A singly linked list cannot jump from tail back to the previous node.
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Deletion From End traverses to the node before tail, disconnects the old tail, and promotes the predecessor as the new tail.
A singly linked list cannot jump from tail back to the previous node.
Traversal stops when current.next is the tail.
prev.next becomes null.
If there is only one node, deleting tail also clears head.