Given a positive integer n, return all numbers that can be formed by rearranging the digits of n and that are strictly greater than n, in increasing order. For 213 the answer is 231, 312, 321.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.