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

Define a linear data structure.

990


Which sorting has less time complexity?

868


Can hashtable have duplicate values?

866


In rdbms, explain what is the efficient data structure used in the internal storage representation?

886


Define back edge?

879


List some applications of queue data structure.

875


What is stack push?

818


What do you mean by disjoint set adt?

914


Why do we use linked lists?

834


What does a treemap do?

768


Is json a data structure?

885


Can we use ordered set for performing binary search?

857


List the limitations of linear probing?

885


What are some of the best practices relating to the java collection framework?

845


Describe full binary tree and complete binary tree.

839