โ† TCS questions
CodingReported in a candidate post, Jul 2019

Maximum number from string of integers using count sort

Filed under TCS

Given a string of digits, rearrange them to form the largest possible number. Use the Counting Sort algorithm to achieve this, as the range of possible values (digits 0-9) is small and fixed.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.