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