- 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.
1 Réponse
+ 3
Try completing C++ course. You should be able to complete your homework by yourself after the course