AmazonCodingMembers
Top K Frequent Elements (LC 347) with a Follow-Up Variant
Members only
Return the `k` most frequent values from an array, implementing the bucket-based linear-time version after comparing sorting and heap alternatives. Follow-up: support a live stream whose current top `...
SWE
hashmap
bucket-sort
top-k
streaming
medium
Frequency
Low · New
Last asked
2026-09-01
Stage
onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
