What is the easiest way to find maximum and minimum of a given set of numbers?
Well, that’s easy.
|
|
How about an array?
The first thing that comes to mind..
|
|
But, an easier solution is right in front of us.
|
|
Moral of the story
Never trust the first instinct.
But, you are not likely to be as naïve as me - so YMMV.