Skip to content
RED SAG Skills
medium10 pts · first answer countssorting-and-searching

Counting a value with two bounds

In the sorted array [1, 2, 2, 2, 3, 5], lower_bound(2) is 1 and upper_bound(2) is 4. How many times does 2 appear, and what is the time cost of this method?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions