All challenges
Multiple ChoiceIntermediate 30s

Iterator pattern

The iterator pattern provides:
Options
  1. 1Sequential access without exposing internal structure
  2. 2Direct indexing into a fixed array of items
  3. 3Binary search over the internal element data
  4. 4Random access to any array element by index

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle