โ† Amazon questions
CodingReported in a candidate post, Mar 2019

Generate unique usernames by appending incremental numbers

Filed under Amazon

Given a username, return it if it is unique. If it exists, append incremental numbers (e.g., 'user', 'user0', 'user1') until a unique one is found.

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.