Comments (4)
I just re-tested it, it's no problem! could you please double check it?
from leetcode.
int main(int argc, char** argv)
{
#if 1 // test case { 2, 3, 1, 4, 5, 6, 7 }; the min is 1
vector num;
num.push_back(2);
num.push_back(3);
num.push_back(1);
num.push_back(4);
num.push_back(5);
num.push_back(6);
num.push_back(7);
int rst = findMin(num);
printf("%d\n", rst);
#else
....
#endif
return 0;
}
print 2
from leetcode.
Oh, I see! the problem here is the test data { 2, 3, 1, 4, 5, 6, 7 };
which is not rotated sorted array !
from leetcode.
Oh,sorry! I know !
发自我的 Windows Phone
发件人: Hao Chenmailto:[email protected]
发送时间: 2014/10/31 18:20
收件人: haoel/leetcodemailto:[email protected]
抄送: yangdm0209mailto:[email protected]
主题: Re: [leetcode] findMinimumInRotatedSortedArray not accept (#15)
Oh, I know! the array { 2, 3, 1, 4, 5, 6, 7 };
is not rotated sorted array !
Reply to this email directly or view it on GitHub:
#15 (comment)
from leetcode.
Related Issues (20)
- Array out of bounds in ”Divide Two Integers“ ‘s solution.
- ReadMe Description error
- 09.palindrome-number HOT 1
- reverse-integer more easy understand
- please include a contributing.md in your repo HOT 1
- question1 twoSum
- 160. intersectionOfTwoLinkedLists.cpp HOT 2
- What is the license for this repository? HOT 1
- Problem 400: Nth Digit - is Medium difficulty on LeetCode not Easy difficulty
- The xidel installed by query_problem.sh is not support for MacOs Catalina 10.15.3 HOT 1
- All examples as absent
- A problem about 315. Count of Smaller Numbers After Self HOT 1
- out of range HOT 1
- Add a daily challenge section
- The install_xidel function for mac in query_problem.sh is invaliad HOT 1
- 1: Two Sum: Go: signature is too broad
- 3sum smaller is missing
- TenthLine - bash
- OutOfMemory exception HOT 3
- Runtime Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leetcode.