摘要: 无语,就是两个栈倒来倒去 class MyQueue { public: stack<int> st; stack<int> tmp; /** Initialize your data structure here. */ MyQueue() { } /** Push element x to th 阅读全文
posted @ 2023-03-14 15:36 穿过雾的阴霾 阅读(11) 评论(0) 推荐(0)
摘要: class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { vector<vector<int>> res; sort(nums.begin(),nums.end()); int n=nums.size(); 阅读全文
posted @ 2023-03-14 15:11 穿过雾的阴霾 阅读(14) 评论(0) 推荐(0)