What should the dry run track?

Practice this question from Kth Largest Element - Size-K Min-Heap Pattern Practice Quiz, with options and an explanation.

Question

What should the dry run track?

Option A — Correct answer

Track heap size, popped values, and the final top.

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 heap size, popped values, and the final top.

Kth Largest Element - Size-K Min-Heap Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker