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