Wrong algorithm
(Algo++) Advanced Data Structures in C++
binary-search:-upper--lower-bound
akshaymakutam
(Akshay Makutam)
June 9, 2019, 9:36pm
#1
its should be start=mid, if the value =key
akshaymakutam
(Akshay Makutam)
June 9, 2019, 9:36pm
#2
as the current index can also be the upper/lowerbound