Question: Write a method called getIndexOfSmallest() which takes in a List of Integer and a single int index. Rather than finding the smallest int in the
Write a method called getIndexOfSmallest() which takes in a List of Integer and a single int index. Rather than finding the smallest int in the list, this method finds the smallest int starting at index. In other words, we ignore all the numbers before index. Example inputs: [4, 2, 1, 5, 9, 8] and 0 --> index 2 [4, 2, 1, 5, 9, 8] and 1 --> index 2 [4, 2, 1, 5, 9, 8] and 2 --> index 2 [4, 2, 1, 5, 9, 8] and 3 --> index 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
