All challenges
Multiple ChoiceBeginner 30s

Binary vs Linear Search

Which is true?
Options
  1. 1Binary search works on unsorted data as long as keys are comparable
  2. 2Linear search is always faster than binary search on any input data
  3. 3Both have identical performance for large sorted collections of data
  4. 4Binary search is faster but requires sorted data; linear search works on any data

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