摘要: This is only a DP problem to count the number of all the possible combination(here is the unique binary tree). We can easily find that when n = 0 or 1... 阅读全文
posted @ 2016-01-27 12:57 爱推理的骑士 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Use DP to generate unique distinct binary trees;Create to two integer value, one "start" to represent the lowest value, and the other "end" to represe... 阅读全文
posted @ 2016-01-27 10:06 爱推理的骑士 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Inoder traversal means that traverse the left subtree of current node first, than display current node's value, afterwards traverse the right subtree ... 阅读全文
posted @ 2016-01-27 04:33 爱推理的骑士 阅读(114) 评论(0) 推荐(0) 编辑