Editorial for DMOPC '14 Contest 1 P1 - Median Mark


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Simply find the median of a given list of integers. Remember to sort the input and to round to the nearest integer (.5 rounds up as per standard mathematical conventions).

\mathcal{O}(N \log N), using the built-in sorting function of the language you were using.


Comments

There are no comments at the moment.