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


Please Help Members By Posting Answers For Below Questions

Explain data encapsulation?

616


Why should a c++ programmer be interested in stl?

649


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

2774


Which coding certification is best?

579


Explain how the virtual base class is different from the conventional base classes of the opps.

708






What is the main function c++?

615


How static variables and local variablesare similar and dissimilar?

571


What does extern mean in a function declaration in c++?

710


• What are the desirable attributes for memory managment?

1734


How do you answer polymorphism?

588


What is a singleton c++?

562


What is scope in c++ with example?

645


Is c++ an oop?

601


what are the decision making statements in C++? Explain if statement with an example?

666


Is C++ case sensitive a) False b) Depends on implementation c) True

626