Can anyone explain this idea

  • 0

    Why we can not choose the mean of array as the final value of array.
    For example:array is [1,3,6,17,18],I know we choose (1+3+6+17+18)/5=9 can't get the min value.But why median can? Thx anyway

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.