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 <[email protected]>wrote: > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
