I am working on a program which will take in an array[5] and a number - array length. I need to search and find the smallest number in the array, delete it, and then decrease array length by one.
what i was thinking was just sorting array largest -> smallest, and then decreasing array length by one essentially making the program think that the array is 4 when it is 5.
Example
tScore [5]
arrayLength 5
sort tScore high -> low
search tScore for low -> should be tScore[5]
arrayLength --
is that the best way to do it?
Thanks