Tell How To Check Whether A Linked List Is Circular ?
Answer / 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 |
What is the difference between Stack and Queue in C++?
0 Answers Global Logic, iNautix,
What is a memory leak in C++?
What are Agilent PRECOMPILERS?
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
How can you force the compiler to not generate them?
What Are The Differences Between A C++ Struct And C++ Class?
What's the value of the expression 5["abxdef"]?
dynamic scoping is
Name the operators that cannot be overloaded.
explain the term 'resource acquisition is initialization'?
Discuss about iteration statements in C++ .
Define type casting in C++.