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
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
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
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