11 2015 档案

摘要:即卡特兰数。#include #include #include #include #include #include #include #include #include #include #define FOR(i,s,t) for(int i = (s) ; i = 0; i -= DLEN)... 阅读全文
posted @ 2015-11-19 21:42 纸牌 阅读(142) 评论(0) 推荐(0)
摘要:二叉树如下: 1 / \ 2 3 / \ / \ 4 5 6 7/ \ /8 9 10从最后一个节点n开始沿着父节点往上爬,直到1(上图中就是:10->5->2->1)。重要的一点:如果当前节点有兄弟节点(例如:10没有兄弟,5的... 阅读全文
posted @ 2015-11-03 20:29 纸牌 阅读(197) 评论(0) 推荐(0)