Y
Hacker News
new
|
ask
|
show
|
jobs
by
fsk
4493 days ago
There is a trick. Loop over the array, remembering the maximum and minimum. If you've seen it before, the question is MUCH easier, making it a bad question.