An array of integers is to be sorted from smallest to largest using an insertion sort. Assume the array originally conta
Posted: Sun May 15, 2022 11:42 am
An array of integers is to be sorted from smallest to largest
using an insertion sort. Assume the array originally contains the
following elements:
2413391720
What will it look like after the third pass through the
loop?
a
3 9 13 24 17 20
b
3 9 13 17 24 20
c
3 9 13 17 20 24
d
9 13 24 3 20 17
e
9 13 24 3 17 20
using an insertion sort. Assume the array originally contains the
following elements:
2413391720
What will it look like after the third pass through the
loop?
a
3 9 13 24 17 20
b
3 9 13 17 24 20
c
3 9 13 17 20 24
d
9 13 24 3 20 17
e
9 13 24 3 17 20