Glossary term

What is upper bound? Meaning for developers

The first index whose value is > the target. upper bound − lower bound = how many times the target appears.

Learn it properly · DSALesson 28: Binary Search on a Sorted ArrayHalve the search space every step; first and last positions; rotated arrays.

All DSA terms

Related terms

← All glossary terms, A to Z