0
/ 50
Given an array of integers, return the smallest value that occurs in the array. You may want to use the constant Integer.MAX_VALUE
, which...
Given an array of integers, return the smallest value that occurs in the array. You may want to use the constant Integer.MAX_VALUE
, which represents the largest int
value that can be represented. You may assume there is at least one value in the array.
Examples:
minInArray({25, 81, 60, 37, 44, 75, 28}) -> 25
minInArray({99, 88, 77, 66, 55}) -> 55
Your feedback will appear here when you check your answer.