摘要: 卡特兰数: Catalan数 原理: 令h(1)=1,h(0)=1,catalan数满足递归式: h(n)= h(1)*h(n-1) + h(2)*h(n-2) + ... + h(n-1)h(1) (其中n>=2) 另类递归式: h(n)=((4*n-2)/(n+1))*h(n-1); 该递推关系 阅读全文
posted @ 2017-08-03 19:54 你的女孩居居 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 题目: Emily the entrepreneur has a cool business idea: packaging and selling snowflakes. She has devised a machine that captures snowflakes as they fall 阅读全文
posted @ 2017-08-03 19:29 你的女孩居居 阅读(244) 评论(0) 推荐(0) 编辑