摘要: 1 class Solution 2 { 3 private: 4 int visited[309]; 5 int nowKilled; 6 int numOfNode; 7 int toBeDeleted; 8 public: 9 void DFS(int killer,vecto... 阅读全文
posted @ 2018-10-16 21:21 Asurudo 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 private: 4 int hashList[102]; 5 public: 6 long long int get(long long int n,long long int m) 7 { 8 if(m==1) 9 ... 阅读全文
posted @ 2018-10-16 19:21 Asurudo 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 int minAddToMakeValid(string S) 5 { 6 stack s; 7 int result = 0; 8 for(auto c:S) 9 { 10 ... 阅读全文
posted @ 2018-10-16 18:38 Asurudo 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 vector sortArrayByParityII(vector& A) 5 { 6 stack oddList; 7 stack evenList; 8 9 for(aut... 阅读全文
posted @ 2018-10-16 18:31 Asurudo 阅读(167) 评论(0) 推荐(0) 编辑