摘要:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 直接使用呢上面命令可能会报403错误 所以推荐使用国内镜像源 /bin/zsh -c "$(curl -fsSL htt 阅读全文
posted @ 2021-07-15 21:11
三一一一317
阅读(112)
评论(0)
推荐(0)
摘要:
class Solution { public: void nextPermutation(vector<int>& nums) { int len = nums.size(); for(int i = len-1; i > 0 ; i--){ if(nums[i]> nums[i-1]){ sor 阅读全文
posted @ 2021-07-15 19:09
三一一一317
阅读(30)
评论(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 17:03
三一一一317
阅读(53)
评论(0)
推荐(0)
摘要:
class Solution { public: vector<string> res; vector<string> generateParenthesis(int n) { if(n==0) return res; back("", n, n); return res; } void back( 阅读全文
posted @ 2021-07-15 16:51
三一一一317
阅读(43)
评论(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 15:55
三一一一317
阅读(52)
评论(0)
推荐(0)
摘要:
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
阅读(27)
评论(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
阅读(33)
评论(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
阅读(47)
评论(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
阅读(36)
评论(0)
推荐(0)

浙公网安备 33010602011771号