The O(n) solution provided breaks arrays into two equal halves at each step
with recurrsive formulae for time complexity be
T(n) = O(n)+T(n/2)
which gives a general formulae of
T(n) = (k*O(n))+T(n/(2^k))
evaluating time complexity of O(nlog n)
Am I correct???
If thats the case Qstn No 11.8 finding K closest elements to the median in O(n) time uses this same solution is also wrong?