X819: Complete the Code

The method minVal returns the value of the minimum element in the subsection of the array nums, starting at position first and ending at position last. The implementation shown has an error.

Examples:

minVal({10,15,12,35},0,3) -> 10
minVal({10,2,4,7},1,3) -> 2

Your Answer:

Feedback

Your feedback will appear here when you check your answer.