Code
Diff
  • interface HighLow {
        static int[] findLargestAndSmallest(int[] nums) {
            // Change min and max below to be the highest and lowest values
            // in the nums array provided to the function
            int min = -9;  
            int max = 9;
            return new int[]{min, max};
          }
            
        }
      
    
    }
    
  • 11 interface HighLow {
    22 static int[] findLargestAndSmallest(int[] nums) {
    33 // Change min and max below to be the highest and lowest values
    44 // in the nums array provided to the function
    5 int min = 0;
    6 int max = 100;
    5+ int min = -9;
    6+ int max = 9;
    77 return new int[]{min, max};
    8+ }
    9+
    88 }
    11+
    12+
    99 }