The Power of the Simplest Possible Example | Blog

Ole Ersoy
Feb - 21  -  1 min

What is the Median?

  //The median is undefined
1 //The median is 1
1,3 //The median is 2 - The average of 1 and 3.
1,2,3 //The median is 2
1,2,3,4 //The median is (2+3)/2
1,2,3,4,5 //The median is 3

There are lots of other examples. Do they help us remember, understand, design, and communicate clearly?

Related Concepts

Code