Leetcode 704. Binary Search
Given a sorted (ascending) array of unique integers and a target value, return the index of the target or -1 if not present; the solution must run in O(log n) time (i.e., implement binary search).
Asked at:
Amazon
Google
Visa
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Late July, 2026
Visa
Senior
Mid November, 2025
Meta
Senior
Mid April, 2025
Meta
Manager
Hello Interview Premium
Your account is free and you can post anonymously if you choose.