delete last node of linked list

vgoel38 (113)
Can I delete the last node(that points to null) of the singly linked list in constant time?
pogrady (410)
Probably not, since you need to iterate through a singly linked list to obtain the last pointer.
Registered users can post here. Sign in or register to post.