For example: 2, 5, 9, 7, 4, after arrangement, it is 2, 4, 5, 7, 9, then the median is the middle number, 5!
Another example: 4, 2, 7, 4, 8, 6. After arrangement, it is 2, 4, 4, 6, 7, 8. There are two numbers in the middle, 4 and 6, so the median is (4+6)/2=5.
That's it, I hope to adopt it ~ ~ ~