X335: minInArray

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 Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.