-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay 27
31 lines (26 loc) · 844 Bytes
/
Day 27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
static class TestDataEmptyArray {
public static int[] get_array() {
// complete this function
return new int[] {};
}
}
static class TestDataUniqueValues {
public static int[] get_array() {
// complete this function
return new int[]{1,2,3,4,5};
}
public static int get_expected_result() {
// complete this function
return minimum_index(get_array());
}
}
static class TestDataExactlyTwoDifferentMinimums {
public static int[] get_array() {
// complete this function
return new int[]{1,2,3,4,3,2,1};
}
public static int get_expected_result() {
// complete this function
return minimum_index(get_array());
}
}