Binary Search : Templates to Remember

Pratik Tiwari
2 min readDec 31, 2020

Binary Search : Part 1 (LowerBound and UpperBound)

Starting with basic template for lower bound and upper bound,
Given an array and a target value, we are suppose to find value greater then equal to target (Lower Bound) and value greater then target (Upper Bound)

--

--