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 |
Can we call a virtual function from a constructor?
What Is A Default Constructor in C++ ?
Discuss the role of C++ shorthands.
In C++ what do you mean by Inheritance?
If class D is derived from a base class B
Write a C++ Program to find Addition of Two Numbers.
How to generate random numbers in C++ with a range?
How to run C++ program in cmd
Difference between Call by pointer and by reference.
Write a C++ Program to Find whether given Number is Odd or Even.
In C++ what is the meaning of data hiding?
How to invoke a C function using a C++ program?