Temu / Pinduoduo logoTemu / Pinduoduo
CodingMembers

Top K Frequent Elements (LC 347) with a Follow-Up Variant

Members only

A phone-screen variant of LC 347: return the `k` most frequent values, then handle a follow-up requiring equal-frequency values to be ordered by numeric value. Confirm the direction of the numeric ord...

SWE
array
hashmap
heap
sorting
medium
Frequency
Single report
Last asked
2026-08-04
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...