Skip to main content
edited title
Link
Idonknow
  • 16.6k
  • 28
  • 121
  • 289

Can we express median in terms of standard operationoperations?

Source Link
Idonknow
  • 16.6k
  • 28
  • 121
  • 289

Can we express median in terms of standard operation?

Given a list of integers $a_1,a_2,...,a_n$ where $n \geq 1$ is odd (may not be in ascending order), is it possible to express their median in terms of some well-known operations such as maximum or minimum?

For example, if we have three numbers, say $3,6,5$, then their median is always the one which is neither the maximum nor minimum. In the example, their median is $5$.