I am working on a program which will take in an array 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.
sort tScore high -> low
search tScore for low -> should be tScore
is that the best way to do it?