C++20 sections · 1024 units
Open in Course

Quiz: binary_search Requirements

Knowledge check

Check Your Understanding

What must be true before using binary_search()?

  1. A.The range must be sorted
  2. B.The container must have unique elements
  3. C.The container must be a vector
  4. D.The container size must be a power of 2
Start the roadmap to answer the quizzes and solve the challenges