Given a non-empty array of integers nums, return [min, max] computed in a single pass.
Minimum and Maximum (Set 2) — the data. This set runs 4 cases: nums holds arrays of 9–15 items, with values from -195 to 284. The hidden cases are the largest of the set.