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 |
Explain the term recursive case?
Which interfaces are implemented by linkedhashset?
Define dynamic data structures?
What is stack algorithm?
Why quicksort is faster than merge sort?
Explain the term binding time?
What is bubble sort?
How do you sort an array by value?
Why is arraylist faster than linkedlist?
What is concurrentlinkeddeque?
What do you mean by free pool?
What is stack in data structure with the example?