
二叉树
「已注销」
这个作者很懒,什么都没留下…
展开
-
7-4 Cartesian Tree (30分) 【PAT 甲级19年冬考】
ACartesian treeis a binary tree constructed from a sequence of distinct numbers. The tree is heap-ordered, and an inorder traversal returns the original sequence. For example, given the sequence { 8, 15, 3, 4, 1, 5, 12, 10, 18, 6 }, the min-heap Cartesia..原创 2020-07-22 10:36:48 · 174 阅读 · 0 评论 -
1127 ZigZagging on a Tree (30分)【重建二叉树/Z字型遍历二叉树】
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences. And it is a simple stand...原创 2020-04-17 01:49:23 · 290 阅读 · 0 评论