Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
super30admin authored Jul 29, 2019
1 parent c7e4b25 commit a224b89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Binary-Search-1

## Problem1 Search in a Rotated Sorted Array (https://leetcode.com/problems/search-in-rotated-sorted-array/)
## Problem1
Search in a Rotated Sorted Array (https://leetcode.com/problems/search-in-rotated-sorted-array/)


Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).
Expand All @@ -21,6 +24,7 @@ Input: nums = [4,5,6,7,0,1,2], target = 3
Output: -1

## Problem2
Search in Infinite sorted array
Search in Infinite sorted array:

Given a sorted array of unknown length and a number to search for, return the index of the number in the array. Accessing an element out of bounds throws exception. If the number occurs multiple times, return the index of any occurrence. If it isn’t present, return -1.

0 comments on commit a224b89

Please sign in to comment.