+ 3

Where i can use binary search in c++ programs explain with example please?? Preference binary or linear search

Algorithms

31st Dec 2018, 6:27 AM
Yogesh Jha
Yogesh Jha - avatar
2 Réponses
+ 5
E.g. when you want to find a value in a sorted array. Binary search is more efficient than linear search.
1st Jan 2019, 11:07 PM
Sonic
Sonic - avatar
31st Dec 2018, 10:32 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar