Challenge: Find minimum in Subarray
Finish writing the function indexOfMinimum
, which takes an array and a number startIndex
, and returns the index of the smallest value that occurs with index startIndex or greater. If this smallest value occurs more than once in this range, then return the index of the leftmost occurrence within this range.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy