Using an O(NlogN) sort instead of a O(N) linear search to find a maximum or minimum value of a list will always be inefficient.
In reply to Re^2: How to get the index of smallest whole number in an array?
by BrowserUk
in thread How to get the index of smallest whole number in an array?
by sohamsg90
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |