Question · Python course · Module 2: Data Structures

Binary Search

What condition must a list meet for Binary Search?

Answer options

  • It must be empty
  • It must be sorted
  • It must contain only numbers
  • It must have an even number of elements
Show the answer

Correct answer:

  • It must be sorted