Search:
Forum
Beginners
delete last node of linked list
delete last node of linked list
vgoel38
(113)
Dec 13, 2012 at 6:05am UTC
Can I delete the last node(that points to null) of the singly linked list in constant time?
pogrady
(410)
Dec 13, 2012 at 6:35am UTC
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.
C++
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs