剑指offer:8  旋转数组的最小数字
class Solution {
public:
    int minNumberInRotateArray(vector<int> rotateArray) {
        if(rotateArray.size()==0)
            return 0;
        sort(rotateArray.begin(),rotateArray.end());
        return rotateArray[0];
        
    }
};
2020-04-21
在牛客打卡12天,今天学习:刷题 1 道/代码提交 1 次
全部评论

相关推荐

07-29 14:09
门头沟学院 Java
我爱o泡我爱o泡o泡果奶ooo
26加瓦鼠鼠:三个offer了,停手吧,回头是岸
OPPO泡池子110人在聊
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务