摘要: PAT甲级: 1152 Google Recruitment (20分) 题干 In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture bel 阅读全文
posted @ 2020-05-07 08:34 Herman·H 阅读(225) 评论(0) 推荐(0) 编辑
摘要: PAT甲级: 1136 A Delayed Palindrome (20分) 题干 Look and say sequence is a sequence of integers as the following: where is in [0, 9] except 1. The (n+1)st n 阅读全文
posted @ 2020-05-07 08:27 Herman·H 阅读(174) 评论(0) 推荐(0) 编辑
摘要: PAT甲级: 1136 A Delayed Palindrome (20分) 题干 Consider a positive integer N written in standard notation with k +1 digits a i as a k ⋯ a 1 a 0 with 0≤ a i 阅读全文
posted @ 2020-05-07 08:17 Herman·H 阅读(210) 评论(0) 推荐(0) 编辑
摘要: PAT甲级: 1124 Raffle for Weibo Followers (20分) 题干 John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on 阅读全文
posted @ 2020-05-07 08:10 Herman·H 阅读(194) 评论(0) 推荐(0) 编辑
摘要: PAT甲级:1066 Root of AVL Tree (25分) 题干 An AVL tree is a self balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any 阅读全文
posted @ 2020-05-07 08:03 Herman·H 阅读(175) 评论(0) 推荐(0) 编辑
摘要: PAT甲级: 1025 PAT Ranking (25分) 题干 Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. 阅读全文
posted @ 2020-05-07 07:52 Herman·H 阅读(190) 评论(0) 推荐(0) 编辑