Given a number represented as a string (potentially > 100 digits), find the next lexicographically greater permutation using the exact same digits. Return 'Not Possible' if no such greater permutation…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.