摘要: LeetCode 665. 非递减数列 class Solution { public: bool checkPossibility(vector<int>& nums) { int n = nums.size(); for(int i=0;i<n-1;i++){ int x = nums[i],y = nums[i+1]; if(x>y 阅读全文
posted @ 2022-11-12 23:44 破忒头头 阅读(28) 评论(0) 推荐(0)