• + 0 comments

    In Java8

        static class TestDataEmptyArray {
            public static int[] get_array(){
                return new int[] {};
            }
        }
        
        static class TestDataUniqueValues {
            public static int[] get_array(){
                return new int[] {4, 2, 3};
            }
            
            public static int get_expected_result(){
                return 1;
            }
        }
        
        static class TestDataExactlyTwoDifferentMinimums{
            public static int[] get_array(){
                return new int[] {5, 3, 4, 3};
            }
            
            public static int get_expected_result(){
                return 1;
            }
        }