You are given an Integer list nums
consisting of n
elements.
Find the smallest Integer in the list and return this value.
Example 1:
Input: nums = [4,8]
Output: 4
Explanation: 4 < 8
Example 2:
Input: nums = [16]
Output: 16
Explanation: 16 is the only number
Example 3:
Input: nums = [5,-6,12]
Output: -6
Explanation: -6 < 5 < 12
Constraints
n == nums.size()
1 <= n < 10