raju said:
i am having a single linked list say 5 node are present, and one
pointer that is pointing to 3rd node using this pointer only i have to
come to the 1st node..... or how can i get back to the 1st node........
Some tipical posibilities are:
a) (obvious, but mandatory to remark): do you need to go again to 1st
node?. Review your algorithm to see if it is mandatory or not.
b) (also obvious): Keep a pointer to list head
c) Look for information about "double linked list".
....
Kind regards.
PS: Some prereplies to next 20 post: a) I've googled for
"datastructure" and in the first 5 answers there are 4 related to
language specific groups (including this one). In order to forward to
another group, I've decided to provided a few more keywords. b) I do
not debate why a person looks for information in groups instead of in a
book or teacher.