InterviewSolution
Saved Bookmarks
| 1. |
Consider an array of elements arr[5]= {5,4,3,2,1} , what are the steps of insertions done while doing insertion sort in the array.(A) 4 5 3 2 13 4 5 2 12 3 4 5 11 2 3 4 5(B) 5 4 3 1 25 4 1 2 35 1 2 3 41 2 3 4 5(C) 4 3 2 1 53 2 1 5 42 1 5 4 31 5 4 3 2(D) 4 5 3 2 12 3 4 5 13 4 5 2 11 2 3 4 5 |
| Answer» | |