随笔分类 -  PAT

1 2 3 4 5 ··· 7 下一页
摘要:In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which 阅读全文
posted @ 2022-02-19 23:55 XA科研 阅读(36) 评论(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 @ 2022-02-17 18:35 XA科研 阅读(31) 评论(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 @ 2022-02-16 23:59 XA科研 阅读(33) 评论(0) 推荐(0) 编辑
摘要:7-2 Lab Access Scheduling (25 分) Nowadays, we have to keep a safe social distance to stop the spread of virus due to the COVID-19 outbreak. Consequent 阅读全文
posted @ 2021-09-07 17:54 XA科研 阅读(76) 评论(0) 推荐(0) 编辑
摘要:PP milk (盆盆奶)is Pandas' favorite. They would line up to enjoy it as show in the picture. On the other hand, they could drink in peace only if they bel 阅读全文
posted @ 2021-03-12 00:24 XA科研 阅读(62) 评论(0) 推荐(0) 编辑
摘要:The land is for sale in CyberCity, and is divided into several pieces. Here it is assumed that each piece of land has exactly two neighboring pieces, 阅读全文
posted @ 2021-03-12 00:22 XA科研 阅读(62) 评论(0) 推荐(0) 编辑
摘要:PP milk (盆盆奶)is Pandas' favorite. They would line up to enjoy it as show in the picture. On the other hand, they could drink in peace only if they bel 阅读全文
posted @ 2021-03-11 23:43 XA科研 阅读(84) 评论(0) 推荐(0) 编辑
摘要: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 @ 2021-03-11 22:01 XA科研 阅读(73) 评论(0) 推荐(0) 编辑
摘要:According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文
posted @ 2021-03-11 18:16 XA科研 阅读(61) 评论(0) 推荐(0) 编辑
摘要:According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文
posted @ 2021-03-11 18:07 XA科研 阅读(58) 评论(0) 推荐(0) 编辑
摘要:If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver 阅读全文
posted @ 2021-03-11 17:19 XA科研 阅读(43) 评论(0) 推荐(0) 编辑
摘要:Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each va 阅读全文
posted @ 2021-03-11 17:02 XA科研 阅读(55) 评论(0) 推荐(0) 编辑
摘要:Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, 阅读全文
posted @ 2021-03-11 15:58 XA科研 阅读(58) 评论(0) 推荐(0) 编辑
摘要:A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key  阅读全文
posted @ 2021-03-11 15:55 XA科研 阅读(57) 评论(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 @ 2021-03-10 23:03 XA科研 阅读(76) 评论(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 @ 2021-03-10 22:28 XA科研 阅读(67) 评论(0) 推荐(0) 编辑
摘要:When the input is much too large to fit into memory, we have to do external sorting instead of internal sorting. One of the key steps in external sort 阅读全文
posted @ 2021-03-10 00:25 XA科研 阅读(314) 评论(0) 推荐(0) 编辑
摘要:A safari park(野生动物园)has K species of animals, and is divided into N regions. The managers hope to spread the animals to all the regions, but not the s 阅读全文
posted @ 2021-03-09 23:08 XA科研 阅读(129) 评论(0) 推荐(0) 编辑
摘要:A game of numbers has the following rules: at the beginning, two distinct positive integers are given by the judge. Then each player in turn must give 阅读全文
posted @ 2021-03-09 22:38 XA科研 阅读(54) 评论(0) 推荐(0) 编辑
摘要:The above picture is from Sina Weibo, showing May 23rd, 2019 as a very cool "Prime Day". That is, not only that the corresponding number of the date 2 阅读全文
posted @ 2021-03-09 21:40 XA科研 阅读(32) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 7 下一页
点击右上角即可分享
微信分享提示