Skip to main content

Arrays Quiz

Editorial

13 questions across the four Arrays lessons: what an operation costs, what a pass carries, what each rearrangement does, and why cyclic sort and the vote work. Pick an answer to see whether it's right and why. Nothing is saved, so you can take it again.

If one trips you up, its lesson is Introduction to Arrays, Rearranging Arrays in Place, Cyclic Sort or Majority Element and Boyer–Moore Voting.

Quiz

1 / 13

Multiple choice

An array holds a million values. Which of these is O(1)?