A slight variation on the above method but it makes no assumptions about the values in the array and performs one less comparison.
1 Like
A slight variation on the above method but it makes no assumptions about the values in the array and performs one less comparison.