Hmmm this is one way any other ? On Wed, Aug 24, 2011 at 9:42 AM, Dheeraj Sharma <[email protected] > wrote:
> u can keep a count..which is incremented when the nodes are inserted and > decremented when the nodes are deleted > > > On Wed, Aug 24, 2011 at 9:31 AM, Ankur Goel <[email protected]>wrote: > >> How to Count the number of nodes in a linked list without traversing >> the list?. >> >> -- >> 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. >> >> > > > -- > *Dheeraj Sharma* > Comp Engg. > NIT Kurukshetra > +91 8950264227 > > > -- > 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. > -- 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.
