- 2

Search for the smallest value in the array

• pace this value in a[0], and place the value that was in a[0] in the location where the smallest was found. • Starting at a[1], find the smallest remaining value swap it with the value currently in a[1]. • Starting at a[2] l, continue the process until the array is sorted.

7th Jun 2021, 9:38 PM
kindy genardino
1 Antwort
+ 3
Try completing C++ course. You should be able to complete your homework by yourself after the course
7th Jun 2021, 10:36 PM
Michal Doruch