Given a positive integer represented as a string, find the lexicographically smallest number possible by rearranging its digits, ensuring the resulting number does not have a leading zero.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.