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 |
Explain about Searching and sorting algorithms with complexities
Consider the following C++ program
Tell me about virtual function
What is Copy Constructor?
Describe the different styles of function prototypes in C++.
When would you use a pointer? A reference?
What are the costs and benefits of using exceptions?
What is a memory leak in C++?
How to reverse a string in C++
Explain what happens when an exception is thrown in C++.
What is C++11?
What is the difference between realloc() and free() in C++?