S
sonu
Hi All,
here i have a daught how can i find wheather a linked list contains a
loop or not.
here i have a daught how can i find wheather a linked list contains a
loop or not.
sonu said:Can u wtite the code. suppose we have 100 nodes then 100 node is
pointing 49the node then what will be the situation
one way is to mark the element you visited
sonu said:suppose my node contains like the following declaration.
struct node
{
int info;
struct node *next_ptr;
}
then how can i mark the node is visited or not.
please specify the code
You've already been requested to include context in your posts. Notice
this reply to you, wherein, I'm quoting both you and the poster before.
This ensures that each post is semi-independent and can be easily
understood by readers who may use an unthreaded newsreader or those who
may be reading your post after the previous ones have expired. *Please*
read the material at the following URLs:
<http://cfaj.freeshell.org/google/>
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>
<http://www.safalra.com/special/googlegroupsreply/>
santosh said:You've already been requested to include context in your posts. Notice
this reply to you, wherein, I'm quoting both you and the poster before.
This ensures that each post is semi-independent and can be easily
understood by readers who may use an unthreaded newsreader or those who
may be reading your post after the previous ones have expired. *Please*
read the material at the following URLs:
<http://cfaj.freeshell.org/google/>
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>
<http://www.safalra.com/special/googlegroupsreply/>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.