摘要:
1 class Solution 2 { 3 public: 4 int myBinarySearch(vector arr,int target) 5 { 6 int le = 0; 7 int ri = arr.size()-1; 8 while(le targe... 阅读全文
摘要:
1 class Solution 2 { 3 private: 4 vector> graphA,graphB; 5 int colSize; 6 int mark; 7 const int xList[4] {1,0,0,-1}; 8 const int yList[4] {0,1,-1,0... 阅读全文
摘要:
1 #define _for(i,a,b) for(int i = (a);i > dialList {{4,6},{6,8},{7,9},{4,8},{0,3,9},{},{0,1,7},{2,6},{1,3},{2,4}}; 9 const int MOD = 1000000007; 10 public: 11 int knightDialer(i... 阅读全文