摘要: 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-23 20:05 Asurudo 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 private: 4 vector result; 5 public: 6 vector threeEqualParts(vector& A) 7 { 8 int oneSum = 0; 9 for(auto d:A) 1... 阅读全文
posted @ 2018-10-23 19:40 Asurudo 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public://saeed ssaaedd 4 bool isLongPressedName(string name, string typed) 5 { 6 int typedEnd = 0; 7 for(int i = 0;i = typed.... 阅读全文
posted @ 2018-10-23 18:32 Asurudo 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 int minFlipsMonoIncr(string S) 5 { 6 vector left2CountOne (S.size(),0); 7 vector right2CountZero (S.size(),0); 8 ... 阅读全文
posted @ 2018-10-23 18:20 Asurudo 阅读(315) 评论(0) 推荐(0) 编辑