← Expedia questions

Append suffix count to duplicate strings in a list

Filed under Expedia

Given a list of strings with potential duplicates, return a new list of strings where each repeating string gets a sequential numeric suffix (e.g., '_1', '_2') based on its occurrence count, while the…

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.