摘要: class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { vector<vector<int>>v; vector<int>v2; sort(nums.begin(),nums.end()); int n = 阅读全文
posted @ 2021-12-30 14:50 智人心 阅读(24) 评论(0) 推荐(0)
摘要: class Solution { public: int maxArea(vector<int>& height) { int i = 0,j = height.size()-1,result = 0; while(i<j){ int h = min(height[i],height[j]); re 阅读全文
posted @ 2021-12-30 09:37 智人心 阅读(22) 评论(0) 推荐(0)