Problem Description

Task: return k numbers with highest frequency. If tie, any order is fine.

Input Format

Java method

Output Format

Return value

Constraints

Use min-heap by frequency.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next