摘要:
class Solution { public: int findMin(vector<int>& nums) { if(!nums.size()) return -1; int n=nums.size()-1; while(n>0&&nums[n]==nums[0]) n--;//倒序删除第二段元 阅读全文
posted @ 2023-03-15 14:16
穿过雾的阴霾
阅读(18)
评论(0)
推荐(0)
摘要:
class Solution { public: int threeSumClosest(vector<int>& nums, int target) { int n=nums.size(); pair<int,int> res(INT_MAX,0);//分别存储差值,和 sort(nums.beg 阅读全文
posted @ 2023-03-15 11:38
穿过雾的阴霾
阅读(21)
评论(0)
推荐(0)

浙公网安备 33010602011771号