摘要:
动态规划的数塔问题 最大连续子序列和 最长不下降子序列(LIS)
阅读全文
posted @ 2019-02-12 15:55
Aldrich_2020
阅读(204)
推荐(0)
编辑
摘要:
1 #include 2 #include 3 using namespace std; 4 struct node{ 5 int data; 6 node *lchild; 7 node *rchild; 8 }; 9 int pre[32],in[32]; 10 node *create(int preL,int preR,int...
阅读全文
posted @ 2019-02-12 14:45
Aldrich_2020
阅读(157)
推荐(0)
编辑
摘要:
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou
阅读全文
posted @ 2019-02-12 11:19
Aldrich_2020
阅读(144)
推荐(0)
编辑