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.