Please output the double of the median of \(\{a\}\).
The definition of the median: Assume \(m\) is the median of \(\{a\}\):
- if \(n\) is odd, then \(2m = 2a_{\frac{n+1}{2}}\);
- if \(n\) is even, then \(2m = a_\frac{n}2+a_{\frac{n}2 + 1}\)
6
3 2 1 4 5 6
7
In the sample case, the median is 3.5, so the answer is 3.5 * 2 = 7