摘要: Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence {0.1, 0.2, 0.3, 0.4}, we h 阅读全文
posted @ 2018-06-05 23:22 赖兴宇 阅读(404) 评论(0) 推荐(0)
摘要: Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to out 阅读全文
posted @ 2018-06-05 22:47 赖兴宇 阅读(150) 评论(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 @ 2018-06-05 21:19 赖兴宇 阅读(104) 评论(0) 推荐(0)
摘要: 1124 Raffle for Weibo Followers (20)(20 分) John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weib 阅读全文
posted @ 2018-06-05 21:06 赖兴宇 阅读(140) 评论(0) 推荐(0)
摘要: Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color 阅读全文
posted @ 2018-06-05 20:39 赖兴宇 阅读(123) 评论(0) 推荐(0)
摘要: The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to generate the ranklist 阅读全文
posted @ 2018-06-05 20:22 赖兴宇 阅读(401) 评论(0) 推荐(0)
摘要: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer 阅读全文
posted @ 2018-06-05 12:59 赖兴宇 阅读(127) 评论(0) 推荐(0)
摘要: "Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can 阅读全文
posted @ 2018-06-05 01:36 赖兴宇 阅读(246) 评论(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 @ 2018-06-05 00:44 赖兴宇 阅读(141) 评论(0) 推荐(0)