Hash map checkpoint

Decide what a lookup means and when a count is ready to use.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. The map contains the entry 7 → 0 when a 4 arrives and the target is 11. What evidence allows this pair?

Select one answer.

2. Add one letter from "abc" and subtract the corresponding letter from "cab" at each step. After the first step, what should you do with the negative c balance?

Select one answer.

3. In "qqzaba", which zero-based index is the first unique character? Enter one integer.
4. If the output changes to the number of index pairs, how many pairs sum to 8 in [4,1,4,4]? Enter one integer.
Join Discord