摘要: 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... 阅读全文
posted @ 2018-11-06 19:51 Asurudo 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-11-06 19:10 Asurudo 阅读(683) 评论(0) 推荐(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... 阅读全文
posted @ 2018-11-06 18:27 Asurudo 阅读(392) 评论(0) 推荐(0) 编辑