Welcome, %1$s. Please login or register.

August 23, 2017, 02:10:55 AM
: 1
: number of nodes in a linked list  ( 1226 )
« : February 11, 2008, 01:30:32 AM From archu»



number of nodes in a linked list


Write a code fragment that, given a pointer to a node in a singly linked list, returns the number of nodes in the list reached by following links from the node, provided the list may be a circular linked list or there may be a loop in the linked list.Without using more than O(1) extra memory space.??? :-\

 
Liked It? Share it!

              


: 1
« previous next »

 

Best RatedList All>>



Latest
Random



SMF 2.0.10 | SMF © 2015, Simple Machines | Contact Webmaster | OnlineFunDb.com © 2009/10 | Legal Disclaimer