Explanation
4, 4, 1, 0, 4, 4, 2, 0
Arrange in ascending order:
0, 0, 1, 1, 2, 4, 4, 4, 4
Position of median = N+1 / 2 = 9+1 / 2 = 5th
Median = 2
4, 4, 1, 0, 4, 4, 2, 0
Arrange in ascending order:
0, 0, 1, 1, 2, 4, 4, 4, 4
Position of median = N+1 / 2 = 9+1 / 2 = 5th
Median = 2