Binary Search

#704
Easy
Binary Search
O(log n)
O(1)
Amazon
Microsoft
Facebook
Google
View on LeetCode

Problem Description

Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums.