What should the dry run track?

Practice this question from Top K Frequent Elements - Frequency Heap Pattern Practice Quiz, with options and an explanation.

Question

What should the dry run track?

Option A — Correct answer

Track counts, heap size, and removed low-frequency values.

Option B

Only the final answer, not heap state

Option C

The alphabetical order of variables

Option D

Only whether values are negative

Explanation

Track counts, heap size, and removed low-frequency values.

Top K Frequent Elements - Frequency Heap Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker