ByteDance / TikTokCoding·60 minMembers
Elements Appearing More Than n/3 in a Sorted Array
Members only
Given a sorted array of length at least 3, return every value whose frequency is greater than `n / 3`. Examples include `[1,1,2,4,4] -> [1,4]`; follow-up requires time complexity below `O(n)` by explo...
SWE
array
binary-search
medium
Frequency
Single report
Last asked
2026-06-26
Stage
tech-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
