摘要: PAT (Advanced Level) Practice 1059 Prime Factors (25 分) 凌宸1642 题目描述: Given any positive integer N, you are supposed to find all of its prime factors, 阅读全文
posted @ 2021-08-11 00:05 凌宸1642 阅读(46) 评论(0) 推荐(0)
摘要: PAT (Advanced Level) Practice 1087 All Roads Lead to Rome (30 分) 凌宸1642 题目描述: Indeed there are many different tourist routes from our city to Rome. Yo 阅读全文
posted @ 2021-08-10 19:23 凌宸1642 阅读(50) 评论(0) 推荐(0)
摘要: PAT (Advanced Level) Practice 1086 Tree Traversals Again (25 分) 凌宸1642 题目描述: An inorder binary tree traversal can be implemented in a non-recursive wa 阅读全文
posted @ 2021-08-10 19:21 凌宸1642 阅读(49) 评论(0) 推荐(0)
摘要: PAT (Advanced Level) Practice 1085 Perfect Sequence (25 分) 凌宸1642 题目描述: Given a sequence of positive integers and another positive integer p. The sequ 阅读全文
posted @ 2021-08-10 19:20 凌宸1642 阅读(41) 评论(0) 推荐(0)
摘要: PAT (Advanced Level) Practice 1083 List Grades (25 分) 凌宸1642 题目描述: Given a list of N student records with name, ID and grade. You are supposed to sort 阅读全文
posted @ 2021-08-09 01:45 凌宸1642 阅读(42) 评论(0) 推荐(0)
摘要: PAT (Advanced Level) Practice 1082 Read Number in Chinese (25 分) 凌宸1642 题目描述: Given an integer with no more than 9 digits, you are supposed to read it 阅读全文
posted @ 2021-08-09 01:43 凌宸1642 阅读(88) 评论(0) 推荐(0)
摘要: PAT (Advanced Level) Practice 1102 Invert a Binary Tree (25 分) 凌宸1642 题目描述: The following is from Max Howell @twitter: Google: 90% of our engineers us 阅读全文
posted @ 2021-08-08 01:17 凌宸1642 阅读(43) 评论(0) 推荐(0)
摘要: PAT (Advanced Level) Practice 1037 Magic Coupon (25 分) 凌宸1642 题目描述: The magic shop in Mars is offering some magic coupons. Each coupon has an integer 阅读全文
posted @ 2021-08-07 22:55 凌宸1642 阅读(48) 评论(0) 推荐(0)
摘要: PAT (Advanced Level) Practice 1090 Highest Price in Supply Chain (25 分) 凌宸1642 题目描述: A supply chain is a network of retailers(零售商), distributors(经销商), 阅读全文
posted @ 2021-08-07 22:52 凌宸1642 阅读(42) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2021-08-06 19:11 凌宸1642 阅读(32) 评论(0) 推荐(0)