GATEverse
← GATE CSE 1991

Q13

NATMarks unknown

Give an optimal algorithm in pseudo-code for sorting a sequence of nn numbers which has only kk distinct numbers (kk is not known a Priori). Give a brief analysis for the time-complexity of your algorithm.

Sign in to save attempts.

Loading…