how to know that a link list is circuler
By tmaheshwari
@tmaheshwari (170)
India
January 17, 2007 4:37am CST
As i promised you to ask you c/c++ questions... so i m here with a new question....
for a given singly link list, how u will now that it is circuler or not.
Write a efficient program to know the same.
Node structure is like:
struct Node {
int m_data;
struct Node *m_self;
};
No responses