Binary Search Algorithm

  • Binary search is a searching algorithm used to find the position of a target value within a sorted array. It works by repeatedly dividing the search interval in half.