C++20 sections · 1024 units
Open in CourseQuiz: 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?
- A.The first 2 (index 1)
- B.The last 2 (index 3)
- C.The middle 2 (index 2)
- D.The element after 2 (index 4)