What should the dry run track?

Practice this question from Longest Consecutive Sequence - Hash Set Pattern Practice Quiz, with options and an explanation.

Question

What should the dry run track?

Option A — Correct answer

Track seen values, start detection, length, and best.

Option B

Only the final output, not counts or lookups

Option C

The alphabetical order of keys

Option D

Only whether values are positive

Explanation

Track seen values, start detection, length, and best.

Longest Consecutive Sequence - Hash Set Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker