Ad
  • Custom User Avatar

    The total average is the average of all non-discarded values, not the average of the averages.

  • Custom User Avatar

    Am I only don`t understand how we can get 4300 in array 2 if (3100+5100)/2 = 4100

    array 0 = 2100,3100,4100 // min, avg, max for input array 0 (without discarded values)

    array 1 = 4500,5100,5800 // min, avg, max for input array 1 (without discarded values)

    array 2 = 2100,4300,5800 // total min, avg, max (without discarded values)