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

Why is quicksort so fast?

887


What is the best time complexity of bubble sort?

923


What is binary tree example?

952


Differentiate linear from a nonlinear data structure?

1063


How does selection sort work?

898


What is difference between list and array list?

849


What is difference between stack and queue?

919


How many types of linked list exist?

968


What do you know about the big-o notation and can you give some examples with respect to different data structures?

929


What is a stable sorting algorithm?

1079


What does args stand for?

916


Define non-linear data structures?

1036


What is the use of placement new?

1036


What is the idea behind splaying?

1788


Differentiate between priorityqueue and treeset.

1243