+ 3
Where i can use binary search in c++ programs explain with example please?? Preference binary or linear search
Algorithms
2 ответов
+ 5
E.g. when you want to find a value in a sorted array. Binary search is more efficient than linear search.
Algorithms