Tell How To Check Whether A Linked List Is Circular ?
Answer Posted / dhayalan.n
we will store the header node into some other variable, then traverse the list, if we get null at the next part of any node, then that is not circular, otherwise we will check the next node is same as the stored node or not, if so then that is circular
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is object in c++ wikipedia?
Why namespace is used in c++?
What is c++ code?
What is the function of I/O library in C++ ?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
How to delete array of objects in C++? Proof by C++ code for proper deletion
What is exception handling? Does c++ support exception handling?
How can you force the compiler to not generate them?
What is pointer -to-members in C++? Give their syntax?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
Explain about templates of C++.
Why is abstraction used?
What is stl language?
What is data binding in oops?
Mention the storage classes in c++.