摘要:
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... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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 ... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 vector sortArrayByParityII(vector& A) 5 { 6 stack oddList; 7 stack evenList; 8 9 for(aut... 阅读全文