Find Minimum in Array
EasyAcceptance: N/A
Given an array of integers nums, return the minimum element in the array.
Example 1:
Input: nums = [3, 1, 4, 1, 5]
Output: 1
Explanation: The minimum element is 1
Example 2:
Input: nums = [-5, -2, -10, -1]
Output: -10
Explanation: The minimum element is -10
Constraints:
- 1 <= nums.length <= 1000
- -1000 <= nums[i] <= 1000
Discussion
Please login to view and join the discussion.
Login to ContinueLoading...
Status:Not run yet
Run your code to see results