摘要:
回溯 八皇后问题 #include <iostream> using namespace std; bool isOk(int c[], int row); // 判断能否在第row行第c[row]列插入一个皇后 void queen(int row, int c[], int n, int& to 阅读全文
摘要:
转自: https://www.cnblogs.com/kyoner/p/11087755.html 左右指针示例: /** 二分查找 */ int find(vector<int> &values, int left, int right, int target) { while(left<=ri 阅读全文