LeetCode
Experience
·
Nov 2024
·
India
Google India | Onsite Question
5 upvotes
645 views
10 replies
Interview Experience
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...
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Arrays
Sorting