## Binary Search

Problem We have sorted array of some elements, and we have to find index of given element using Binary search (better than O(n) time complexity). Solution Here we are going to use Binary Search. We can have two cases : Element exists in given array Element does not exist in given array Element exists in … [Read more…]