Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Describe new operator?

1214


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1131


How long does it take to get good at leetcode?

1240


Why is destructor used?

1082


What are the rules about using an underscore in a c++ identifier?

1254


What are protected members in c++?

1181


What are the advantages of using pointers in a program?

1191


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

1026


Why do we use the using declaration?

1237


Explain the register storage classes in c++.

1230


How do you define a class in oop?

1176


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

1114


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6739


what are the iterator and generic algorithms.

1992


Describe exception handling concept with an example?

1098