随笔分类 -  PAT

上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要:This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed grap 阅读全文
posted @ 2020-04-13 17:48 Veritas_des_Liberty 阅读(251) 评论(0) 推荐(0)
摘要:In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the 阅读全文
posted @ 2020-04-12 23:19 Veritas_des_Liberty 阅读(211) 评论(0) 推荐(0)
摘要:Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 阅读全文
posted @ 2020-04-11 21:02 Veritas_des_Liberty 阅读(251) 评论(0) 推荐(0)
摘要:When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in s 阅读全文
posted @ 2020-04-10 22:25 Veritas_des_Liberty 阅读(212) 评论(0) 推荐(0)
摘要:The "travelling salesman problem" asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shor 阅读全文
posted @ 2020-04-10 21:41 Veritas_des_Liberty 阅读(206) 评论(0) 推荐(0)
摘要:The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. Given any two nodes in a bin 阅读全文
posted @ 2020-04-10 17:21 Veritas_des_Liberty 阅读(202) 评论(0) 推荐(0)
摘要:In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is supe 阅读全文
posted @ 2020-04-10 14:38 Veritas_des_Liberty 阅读(221) 评论(0) 推荐(0)
摘要:A registration card number of PAT consists of 4 parts: the 1st letter represents the test level, namely, T for the top level, A for advance and B for 阅读全文
posted @ 2020-04-07 16:24 Veritas_des_Liberty 阅读(231) 评论(0) 推荐(0)
摘要:A proper vertex coloring is a labeling of the graph's vertices with colors such that no two vertices sharing the same edge have the same color. A colo 阅读全文
posted @ 2020-04-07 14:30 Veritas_des_Liberty 阅读(221) 评论(0) 推荐(0)
摘要:In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the 阅读全文
posted @ 2020-04-07 12:38 Veritas_des_Liberty 阅读(204) 评论(0) 推荐(0)
摘要:On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc 阅读全文
posted @ 2020-04-06 17:15 Veritas_des_Liberty 阅读(178) 评论(0) 推荐(0)
摘要:Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the max 阅读全文
posted @ 2020-04-06 16:09 Veritas_des_Liberty 阅读(185) 评论(0) 推荐(0)
摘要:An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the 阅读全文
posted @ 2020-04-05 23:41 Veritas_des_Liberty 阅读(215) 评论(0) 推荐(0)
摘要:Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gainin 阅读全文
posted @ 2020-04-04 20:15 Veritas_des_Liberty 阅读(239) 评论(0) 推荐(0)
摘要:For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient. Input Sp 阅读全文
posted @ 2020-04-03 22:40 Veritas_des_Liberty 阅读(288) 评论(0) 推荐(0)
摘要:According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文
posted @ 2020-04-03 13:10 Veritas_des_Liberty 阅读(257) 评论(0) 推荐(0)
摘要:A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer 阅读全文
posted @ 2020-04-02 23:53 Veritas_des_Liberty 阅读(231) 评论(0) 推荐(0)
摘要:One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions 阅读全文
posted @ 2020-04-02 21:48 Veritas_des_Liberty 阅读(235) 评论(0) 推荐(0)
摘要:Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b 阅读全文
posted @ 2020-04-02 11:09 Veritas_des_Liberty 阅读(232) 评论(0) 推荐(0)
摘要:The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed 阅读全文
posted @ 2020-04-02 10:26 Veritas_des_Liberty 阅读(221) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 下一页