棋子

导航

2016年2月10日 #

Find Minimum in Rotated Sorted Array II leetcode

摘要: 题目链接 这个博客的算法思想简单好! 还是贴上自己的蹩脚代码吧!! 1 class Solution { 2 public: 3 int findMin(vector<int>& nums) { 4 if(nums.empty()) 5 return -1; 6 int begin=0,end=nu 阅读全文

posted @ 2016-02-10 11:11 鼬与轮回 阅读(181) 评论(0) 推荐(0) 编辑

Find Minimum in Rotated Sorted Array leetcode

摘要: 原题链接 直接贴代码,这道题是 search in rotated sorted array leetcode 的前面部分! 1 class Solution { 2 public: 3 int findMin(vector<int>& nums) { 4 if (nums.empty()) 5 r 阅读全文

posted @ 2016-02-10 10:18 鼬与轮回 阅读(149) 评论(0) 推荐(0) 编辑