摘要:
Date:2019-07-01 15:31:11 通俗点理解就是不撞南墙不回头的那种,用栈来实现 算法实现 阅读全文
摘要:
Source: PAT A1020 Tree Traversals (25 分) Description: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder a 阅读全文
摘要:
Source: PAT A1086 Tree Traversals Again (25 分) Description: An inorder binary tree traversal can be implemented in a non-recursive way with a stack. F 阅读全文
摘要:
Source: PAT A1102 Invert a Binary Tree (25 分) Description: The following is from Max Howell @twitter: Now it's your turn to prove that YOU CAN invert 阅读全文
摘要:
Source: PAT A1004 Counting Leaves (30 分) Description: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family me 阅读全文
摘要:
Source: PAT A1053 Path of Equal Weight (30 分) Description: Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. 阅读全文
摘要:
Source: PAT A1079 Total Sales of Supply Chain (25 分) Description: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商) 阅读全文
摘要:
Source: PAT A1090 Highest Price in Supply Chain (25 分) Description: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应 阅读全文
摘要:
Source: PAT A1094 The Largest Generation (25 分) Description: A family hierarchy is usually presented by a pedigree tree where all the nodes on the sam 阅读全文
摘要:
Source: PAT A1106 Lowest Price in Supply Chain (25 分) Description: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商 阅读全文