Skip to content

153. Find Minimum in Rotated Sorted Array #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 7, 2019

Conversation

zwfang
Copy link
Collaborator

@zwfang zwfang commented Jan 7, 2019

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]).

Find the minimum element.

You may assume no duplicate exists in the array.

@zwfang zwfang added binary search a search algorithm that finds the position of target value within a sorted array. Medium Coefficient of difficulty medium labels Jan 7, 2019
@codecov
Copy link

codecov bot commented Jan 7, 2019

Codecov Report

Merging #49 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
+ Coverage   99.39%   99.39%   +0.01%     
==========================================
  Files          90       91       +1     
  Lines        1614     1627      +13     
==========================================
+ Hits         1604     1617      +13     
  Misses          6        6              
  Partials        4        4
Impacted Files Coverage Δ
...153_find_minimum_in_rotated_sorted_array/fmirsa.go 100% <100%> (ø)

@zwfang zwfang merged commit 1133d7d into master Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binary search a search algorithm that finds the position of target value within a sorted array. Medium Coefficient of difficulty medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant