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.