Write an algorithm for sorting the array of 10 elements using in insertion sort
Answers
Answered by
1
Answer:
I dont know it but it looks you know
Answered by
3
Answer---↷
✭ The first element in the array is
assumed to be sorted. Take the second
elementand store it separately in key .
✭ Now, the first two elements are sorted. Take the third element and compare it with the elements on the left of it.
✭ Similarly, place every unsorted
element at its correct position.
Similar questions