← Expedia questions

Unique device names with numeric suffixes

Filed under Expedia

Given an array of requested device name strings, return an array of unique device names. If a requested name has already been used, append the smallest positive integer suffix (1, 2, 3, ...) needed to…

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

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