You are given a list of Decimals nums
.
Find the largest number in the list and return this value.
Example 1:
Input: nums = [10, 15, 2]
Output: 15
Explanation: 15 > 10 > 2
Example 2:
Input: nums = [30]
Output: 30
Explanation: 30 is the only value
Example 3:
Input: nums = [-2,-6,-10]
Output: -2
Explanation: -2 > -6 > -10
Constraints
0 <= nums.size() < 10