What is lower bound in C?
|Rate this page :||
[ 0 votes]
Lower bound in c is generally looks like doing a binary search, but
(a) If your required element is not found then you will return to your current place in the search.
(b) In case if your required element is found , you may search on until you find an non matching content. After that you return a pointer to the first matching element.
In Cpp, lower_bound concept is easy to understand.Here,the example code for lower_bound in Cpp.