← Amazon questions
CodingMedium to Hard

Append occurrence counts to repeated strings in a log

Filed under Amazon

Given a sequential list of strings representing a log, format each string such that the first occurrence remains unchanged, but subsequent identical occurrences have their current count appended in…

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.