[Leetcode] Binary Search
A commonly used algorithm. A diversion of two pointers. Not complicated while the template should be memorized.
Description
Given an array of integers nums
which is sorted in ascending order, and an integer target
, write a function to…