摘要:
1 #include "000库函数.h" 2 3 4 //自解,就遍历数数 8ms 5 class Solution { 6 public: 7 string countAndSay(int n) { 8 if (n == 0)return ""; 9 string str = "1"; 10 string s; ... 阅读全文
posted @ 2019-03-19 15:32
自由之翼Az
阅读(382)
评论(0)
推荐(0)
摘要:
//跟此题类似的有 Permutations 全排列,Combinations 组合项, N - Queens N皇后问题等等,//其中尤其是跟 N - Queens N皇后问题的解题思路及其相似,对于每个需要填数字的格子带入1到9,//每代入一个数字都判定其是否合法,如果合法就继续下一次递归,结束 阅读全文
posted @ 2019-03-19 15:31
自由之翼Az
阅读(375)
评论(0)
推荐(0)

浙公网安备 33010602011771号