3 ms·
This is the correct answer. We can even account for the assumption with an empty check before the rest of the code. (If the array is empty, it doesn't have a ma
by aarohmankad 9y ago
This is the correct answer. We can even account for the assumption with an empty check before the rest of the code. (If the array is empty, it doesn't have a max value.)