Code Monkey home page Code Monkey logo

Comments (4)

haoel avatar haoel commented on June 19, 2024

I just re-tested it, it's no problem! could you please double check it?

from leetcode.

yangdm0209 avatar yangdm0209 commented on June 19, 2024

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.

haoel avatar haoel commented on June 19, 2024

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.

yangdm0209 avatar yangdm0209 commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.