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 the latest c++ version?
Array base access faster or pointer base access is faster?
What are the differences between new and malloc?
Can we inherit constructor in c++?
Write a program to find the Factorial of a number
What is std :: endl?
the maximum length of a character constant can be a) 2 b) 1 c) 8
What you know about structures in C++?
How to defines the function in c++?
What is c++ map?
Write about the retrieval of n number of objects during the process of delete[]p?
what is c++
Differentiate between the message and method in c++?
What is a standard template library (stl)? What are the various types of stl containers?
Can c++ do everything c can?