摘要: 1 #include <iostream> 2 #include <unordered_map> 3 #include <algorithm> 4 #include <vector> 5 #include <queue> 6 7 using namespace std; 8 9 class Solu 阅读全文
posted @ 2018-08-17 18:36 Asurudo 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 private: 4 enum op {PLUS,MINUS}; 5 int left_constant_sum = 0; 6 int left_x_sum = 0; 7 int right_constant_sum = 0; 8 ... 阅读全文
posted @ 2018-08-17 15:08 Asurudo 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 vector result; 5 int size; 6 vector letterCasePermutation(string S) 7 { 8 size = S.size(); 9 DFS(... 阅读全文
posted @ 2018-08-17 11:33 Asurudo 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 //if doesn't find,return NULL 5 TreeNode *BinarySearchTreeNodeFindMin(TreeNode *TreeRoot) 6 { 7 if(TreeRoot==NULL) 8 ... 阅读全文
posted @ 2018-08-17 09:25 Asurudo 阅读(302) 评论(0) 推荐(0) 编辑