ByteDance / TikTokCoding·60 minMembers
Elements Appearing More Than n/3 in a Sorted Array
Members only
ByteDance / TikTok tech-screen prompt on frequency counting in a sorted array. The hook is not the base majority-element idea; it is the follow-up that pushes below linear time by using the sorted input instead of scanning everything.
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...
