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 |
In C++ what do you mean by Inheritance?
How can a C function be called in a C++ program?
What are string library functions(syntax).
What Are The Differences Between A C++ Struct And C++ Class?
Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70
How does stack look in function calls? Write a recursive function call, how will the stack look like?
What is meant by exit controlled loop?
What is a constructor initializer list?
Describe the different styles of function prototypes in C++.
Question on Copy constructor.
What are issues if we mix new and free in C++?
How to convert integer to string in C++