Re: [algogeeks] Re: Given only a pointer to a node to be deleted in a singly linked list how you handle deleting last node

2012-07-10 Thread vaibhav shukla
For such case .. circular linked list will come handy to be able to delete
last node.

On Tue, Jul 10, 2012 at 8:28 AM, deepikaanand swinyanand...@gmail.comwrote:

 No there is no way to delete the last node in such a situation
 though u can replace the info part of such a last node with
 '#'though it wont delete the node but now u know that u can
 traverse the list while node-info != '#'

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
best wishes!!
 Vaibhav

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Given only a pointer to a node to be deleted in a singly linked list how you handle deleting last node

2012-07-09 Thread deepikaanand
No there is no way to delete the last node in such a situation
though u can replace the info part of such a last node with
'#'though it wont delete the node but now u know that u can
traverse the list while node-info != '#'

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.