How would you sort a linked list?

Answer Posted / touchriverian

using merge sort.

http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define root?

549


Why is merge sort faster?

489


Why is arraylist used?

481


Is pointer a variable in data structure?

520


How null key is handled in hashmap?

460






What is meant by deque?

491


How do hash tables work?

501


What is map data structure?

461


How do you declare An array of three pointers to chars

506


Write the importance of hashing?

599


Write the algorithm for converting infix expression to postfix expression?

558


Does treemap allow duplicate keys?

480


Explain about map and their types?

589


what is the primary advantage of a linked list?

935


Traverse the given tree using Inorder, Preorder and Postorder traversals. Inorder : D H B E A F C I G J Preorder: A B D H E C F G I J Postorder: H D E B F I J G C A

645