Skip to content

Commit 89e8659

Browse files
committed
0704: Binary Search
1 parent 02c57d6 commit 89e8659

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

0704-Binary_Search/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 704. Binary Search
2+
13
Given an array of integers `nums` which is sorted in ascending order, and an integer `target`, write a function to search `target` in `nums`. If `target` exists, then return its index. Otherwise, return `-1`.
24

35
You must write an algorithm with `O(log n)` runtime complexity.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy