← Expedia questions
CodingReported in a candidate post, Jul 2025

Rename repeated strings with occurrence counters

Filed under Expedia

Given an array of strings `names`, rename repeated strings by appending an occurrence counter in format `nameN` where N is 1 for the second occurrence, 2 for the third, and so on. The first occurrence…

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.