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
Explain data encapsulation?
Why should a c++ programmer be interested in stl?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
Which coding certification is best?
Explain how the virtual base class is different from the conventional base classes of the opps.
What is the main function c++?
How static variables and local variablesare similar and dissimilar?
What does extern mean in a function declaration in c++?
• What are the desirable attributes for memory managment?
How do you answer polymorphism?
What is a singleton c++?
What is scope in c++ with example?
Is c++ an oop?
what are the decision making statements in C++? Explain if statement with an example?
Is C++ case sensitive a) False b) Depends on implementation c) True