摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 11 using namespace std; 12 struct Point 13 { 14 int x,y; 15 Point(int ... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 11 #define _for(i,a,b) for(int i = (a);i = b; 23 } 24 }; 25 26 int readin... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 vector wordSubsets(vector& A, vector& B) 5 { 6 int hash[28]; 7 int hash2[28]; 8 memset(hash,0,sizeof(h... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 int partitionDisjoint(vector& A) 5 { 6 if(A.size()==2&&A[0] B(A.size(),0); 9 10 int Min = 10000000; 11... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 bool hasGroupsSizeX(vector& deck) 5 { 6 vector deckList(10002,0); 7 8 // int max = 0; 9 f... 阅读全文