Show the worked solutionWrite each number in base \(n\): any value in \([0,n^2-1]\) has exactly 2 base-\(n\) digits.
Radix sort with counting sort per digit then costs\[d(n+k)=2(n+n)=O(n).\]This beats the \(O(n\lg n)\) comparison bound because it does not compare keys.Answer: B
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com