
PAT甲级
文章平均质量分 81
sweety_teng
这个作者很懒,什么都没留下…
展开
-
PAT真题1174 Left-View of Binary Tree (25分)
1174 Left-View of Binary Tree (25分)The left-view of a binary tree is a list of nodes obtained by looking at the tree from left hand side and from top down. For example, given a tree shown by the figure, its left-view is { 1, 2, 3, 4, 5 }Given the inorder原创 2021-09-10 15:44:05 · 380 阅读 · 0 评论 -
PAT 甲级1166(图)Summit (25分)
A summit (峰会) is a meeting of heads of state or government. Arranging the rest areas for the summit is not a simple job. The ideal arrangement of one area is to invite those heads so that everyone is a direct friend of everyone.Now given a set of tentativ原创 2021-09-07 21:21:09 · 306 阅读 · 0 评论 -
PAT甲级 A1103 Integer Factorization (30 分)
1103 Integer Factorization (30 分)The K−P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program to find the K−P factorization of N for any positive integers N, K and P.原创 2021-08-28 15:14:36 · 208 阅读 · 0 评论 -
PAT甲级 1043 Is It a Binary Search Tree (25 分)
PAT甲级10431043 Is It a Binary Search Tree (25 分)题目输入输出代码1043 Is It a Binary Search Tree (25 分)题目A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with key原创 2021-08-12 14:52:36 · 93 阅读 · 0 评论