โ† Adobe questions

Find Kth repetition of a character and all K's

Filed under Adobe

Given a string S and an array of integers K, for each k in K, find the index of the k-th occurrence of a specific character C. If the k-th occurrence does not exist, return -1.

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

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