C++20 sections · 1024 units
Open in Course

Quiz: lower_bound vs upper_bound

Knowledge check

Check Your Understanding

In sorted array [1,2,2,2,3], what does lower_bound point to when searching for 2?

  1. A.The first 2 (index 1)
  2. B.The last 2 (index 3)
  3. C.The middle 2 (index 2)
  4. D.The element after 2 (index 4)
Start the roadmap to answer the quizzes and solve the challenges