随笔分类 - 二叉树
BST
摘要:PAT(甲级)2019年秋季考试 7-3 Postfix Expression (25 分) 题目描述: Given a syntax tree (binary), you are supposed to output the corresponding postfix expression, wi
阅读全文
摘要:PAT (Advanced Level) Practice 1119 Pre- and Post-order Traversals (30 分) 凌宸1642 题目描述: Suppose that all the keys in a binary tree are distinct positive
阅读全文
摘要:PAT (Advanced Level) Practice 1151 LCA in a Binary Tree (30 分) 凌宸1642 题目描述: The lowest common ancestor (LCA) of two nodes U and V in a tree is the dee
阅读全文
摘要:PAT (Advanced Level) Practice 1143 Lowest Common Ancestor (30 分) 凌宸1642 题目描述: The lowest common ancestor (LCA) of two nodes U and V in a tree is the d
阅读全文
摘要:PAT (Advanced Level) Practice 1138 Postorder Traversal (25 分) 凌宸1642 题目描述: Suppose that all the keys in a binary tree are distinct positive integers.
阅读全文
摘要:PAT (Advanced Level) Practice 1130 Infix Expression (25 分) 凌宸1642 题目描述: Given a syntax tree (binary), you are supposed to output the corresponding inf
阅读全文
摘要:PAT (Advanced Level) Practice 1127 ZigZagging on a Tree (30 分) 凌宸1642 题目描述: Suppose that all the keys in a binary tree are distinct positive integers.
阅读全文
摘要:PAT (Advanced Level) Practice 1115 Counting Nodes in a BST (30 分) 凌宸1642 题目描述: A Binary Search Tree (BST) is recursively defined as a binary tree whic
阅读全文
摘要:PAT (Advanced Level) Practice 1106 Lowest Price in Supply Chain (25 分) 凌宸1642 题目描述: A supply chain is a network of retailers(零售商), distributors(经销商),
阅读全文
摘要:PAT (Advanced Level) Practice 1086 Tree Traversals Again (25 分) 凌宸1642 题目描述: An inorder binary tree traversal can be implemented in a non-recursive wa
阅读全文
摘要:PAT (Advanced Level) Practice 1102 Invert a Binary Tree (25 分) 凌宸1642 题目描述: The following is from Max Howell @twitter: Google: 90% of our engineers us
阅读全文
摘要:PAT (Advanced Level) Practice 1090 Highest Price in Supply Chain (25 分) 凌宸1642 题目描述: A supply chain is a network of retailers(零售商), distributors(经销商),
阅读全文
摘要:PAT (Advanced Level) Practice 1099 Build A Binary Search Tree (30 分) 凌宸1642 题目描述: A Binary Search Tree (BST) is recursively defined as a binary tree w
阅读全文
摘要:PAT (Advanced Level) Practice 1094 The Largest Generation (25 分) 凌宸1642 题目描述: A family hierarchy is usually presented by a pedigree tree where all the
阅读全文
摘要:PAT (Advanced Level) Practice 1043 Is It a Binary Search Tree (25 分) 凌宸1642 题目描述: A Binary Search Tree (BST) is recursively defined as a binary tree w
阅读全文

浙公网安备 33010602011771号