Re: [algogeeks] Linklist question

2011-08-24 Thread shashi kant
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

[algogeeks] Linklist question

2011-08-23 Thread Ankur Goel
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

Re: [algogeeks] Linklist question

2011-08-23 Thread Dheeraj Sharma
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

Re: [algogeeks] Linklist question

2011-08-23 Thread Ankur Goel
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