摘要:
class Solution { public: bool isValid(string s) { int len = s.length(); if(len==0) return true; vector<char> res; if(s[0]==')'||s[0]==']'||s[0]=='}') 阅读全文
posted @ 2021-07-15 15:32
三一一一317
阅读(26)
评论(0)
推荐(0)
摘要:
class Solution { public: vector<string> res; unordered_map<char,string> map; string str = ""; vector<string> letterCombinations(string digits) { int l 阅读全文
posted @ 2021-07-15 13:39
三一一一317
阅读(31)
评论(0)
推荐(0)
摘要:
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : 阅读全文
posted @ 2021-07-15 12:25
三一一一317
阅读(37)
评论(0)
推荐(0)
摘要:
class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { vector<vector<int>> res; if(nums.size()<3) return res; sort(nums.begin(), n 阅读全文
posted @ 2021-07-15 11:32
三一一一317
阅读(31)
评论(0)
推荐(0)