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...

How would you sort a linked list?

Answer Posted / sdfg

write an insert in order function where it traverse the list until it finds a greater element and put it before it.
create a new list and insert all items in the old list to the new list using the InsertInOrder function

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you represent a linked list in a graphical view?

1036


How many types of sorting algorithms are there?

886


What is the best case for bubble sort?

853


What are AVL trees?

1053


What is circular queue example?

928


Are lists mutable?

935


How do I rearrange rows in numbers?

884


Difference between calloc and malloc in data structures?

901


What is the non linear data structure?

913


Differentiate between collection and collections.

1074


What is the difference between b tree and binary search tree?

862


What you mean by sorting?

918


what is the difference between dynamic as well as non - dynamic data structures.

948


What is the time complexity of hashmap get () and put () method?

875


What is selection in an algorithm?

868