well there is no other way.....but to keep some storage On Wed, Aug 24, 2011 at 9:44 AM, Ankur Goel <goel.anku...@gmail.com> wrote:
> Hmmm this is one way any other ? > > > On Wed, Aug 24, 2011 at 9:42 AM, Dheeraj Sharma < > dheerajsharma1...@gmail.com> 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 <goel.anku...@gmail.com>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 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. >>> >>> >> >> >> -- >> *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 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. >> > > -- > 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. > -- *Shashi Kant * ***"Think positive and find fuel in failure"* *+919002943948 * *R&D engineer , Tejas Networks Ltd Banglore. * -- 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.