Part 5 of 22 in Binary Search  

Binary Search-finding first or last occurrence of a number

In this lesson, we will see how to write a binary search to find out the first or last occurrence of a number in a sorted array with duplicates.