What should the dry run track?

Practice this question from First Unique Character - Frequency Map Pattern Practice Quiz, with options and an explanation.

Question

What should the dry run track?

Option A — Correct answer

Track character counts and then the first index with count 1.

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 character counts and then the first index with count 1.

First Unique Character - Frequency Map Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker