How would you sort a linked list?
Answers were Sorted based on User's Feedback
Answer / touchriverian
using merge sort.
http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html
| Is This Answer Correct ? | 9 Yes | 3 No |
Answer / 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 |
Answer / deepak pareek
I THINK....selection sort is the better way to sort the
link list.
| Is This Answer Correct ? | 1 Yes | 2 No |
What are the tasks performed during preorder traversal?
Is hashtable better than dictionary?
Explain the uses of b+ tree.
Explain the expression trees?
Is selection sort greedy?
State the rules to be followed during infix to postfix conversions?
Is copyonwritearraylist thread safe?
Describe the complexity of Binary search
What is the space complexity of quicksort?
What are the advantages of selecetion sort?
What are the four types of variables?
Name the areas in which you can apply data structures extensively?