Given an integer array `nums` of length n, return the largest value in the array. This is variant **#6** — arrays may include negative numbers.
Example 1
Input: nums = [-2,5,12,19,26,33,40,47,54,61,68]
Output: 68
Constraints
Acceptance: 68% · Topics: array, iteration