C++20 sections · 1024 units
Open in CourseQuiz: binary_search Requirements
Knowledge check
Check Your Understanding
What must be true before using binary_search()?
- A.The range must be sorted
- B.The container must have unique elements
- C.The container must be a vector
- D.The container size must be a power of 2