摘要:
1 class Solution 2 { 3 public: 4 vector> res; 5 int SUM; 6 void dfs(TreeNode* node,int tt,vector tmp) 7 { 8 vector tmp1 = tmp,tmp2 = tmp; 9 ... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 bool validateStackSequences(vector& pushed, vector& popped) 5 { 6 stack s; 7 int pushedEnd = -1; 8 for... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 int minIncrementForUnique(vector& A) 5 { 6 int a[90000] {0}; 7 for(int i = 0;i =2) 14 { 15 ... 阅读全文