Google India | Onsite Question
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-11-12Added By Anonymous
Source:Ā Link
š§ Experience: unknown
ā
Outcome: unknown
š° Compensation: unknown
š Location: India
š¢ Company: Google
š Education: unknown
š Benefits: unknown
š
Offer Date: unknown
Given an sorted array, find the maximum frequency of a number.
Eg: [1,2,2,3,3,3,3,4,4,5,6] : Answer: 4 (3 is repeated 4 times).
O(N) is straight forward solution. Asked if the performance can be improved.