Find frequency of a key in a sorted array with duplicates
Filed under Zomato
The question
Given a sorted array containing duplicate elements and a target key, find the total frequency of the key in the array.
No write-up yet. Related questions below have one.
Related Zomato questions
Collected from public candidate posts and coding forums. Updated Nov 2026.