![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
PurcellHuang
Always like this!
展开
-
n皇后问题求解
运用栈来求解n皇后问题。原创 2017-10-30 15:18:10 · 398 阅读 · 0 评论 -
卡特兰数------2行n列排队问题
一、Catalan数的定义令h(1)=1,Catalan数满足递归式:h(n) = h(1)*h(n-1) + h(2)*h(n-2) + ... + h(n-1)h(1),n>=2该递推关系的解为:h(n) = C(2n-2,n-1)/n,n=1,2,3,...(其中C(2n-2,n-1)表示2n-2个中取n-1个的组合数) 问题描述: 2n#include int count =原创 2017-10-30 15:27:09 · 746 阅读 · 0 评论