摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 struct BST{ 8 int key; 9 BST *lc, *rc;10 BST(){11 ... 阅读全文
posted @ 2015-10-22 16:55 流白 阅读(142) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/n-queens/ 1 class Solution { 2 public: 3 void dfs(vector> &ret, vector> map,int i, int j){ 4 if(i==map.size(... 阅读全文
posted @ 2015-10-22 11:23 流白 阅读(160) 评论(0) 推荐(0) 编辑