โ† Amazon questions

Find next greatest number using digits

Filed under Amazon

Given a positive integer as a string, find the next largest number that can be formed by rearranging its digits.

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 Amazon questions

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