• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






tccbj

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页

2019年2月25日

PAT A1137 Final Grading (25 分)——排序
摘要: For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/ 阅读全文
posted @ 2019-02-25 10:21 tccbj 阅读(471) 评论(0) 推荐(0)
 

2019年2月23日

PAT A1136 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​​<10 for all i and a​k​​>0. Then N is  阅读全文
posted @ 2019-02-23 21:26 tccbj 阅读(149) 评论(0) 推荐(0)
 
PAT A1134 Vertex Cover (25 分)——图遍历
摘要: A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with 阅读全文
posted @ 2019-02-23 20:31 tccbj 阅读(142) 评论(0) 推荐(0)
 
PAT A1133 Splitting A Linked List (25 分)——链表
摘要: Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all 阅读全文
posted @ 2019-02-23 19:41 tccbj 阅读(146) 评论(0) 推荐(0)
 
PAT A1132 Cut Integer (20 分)——数学题
摘要: Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 阅读全文
posted @ 2019-02-23 17:17 tccbj 阅读(154) 评论(0) 推荐(0)
 
PAT A1130 Infix Expression (25 分)——中序遍历
摘要: Given a syntax tree (binary), you are supposed to output the corresponding infix expression, with parentheses reflecting the precedences of the operat 阅读全文
posted @ 2019-02-23 15:47 tccbj 阅读(349) 评论(0) 推荐(0)
 

2019年2月22日

PAT A1142 Maximal Clique (25 分)——图
摘要: A clique is a subset of vertices of an undirected graph such that every two distinct vertices in the clique are adjacent. A maximal clique is a clique 阅读全文
posted @ 2019-02-22 19:19 tccbj 阅读(129) 评论(0) 推荐(0)
 
PAT A1141 PAT Ranking of Institutions (25 分)——排序,结构体初始化
摘要: After each PAT, the PAT Center will announce the ranking of institutions based on their students' performances. Now you are asked to generate the rank 阅读全文
posted @ 2019-02-22 16:44 tccbj 阅读(196) 评论(0) 推荐(0)
 
PAT A1140 Look-and-say Sequence (20 分)——数学题
摘要: Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The (n+1)s 阅读全文
posted @ 2019-02-22 14:22 tccbj 阅读(142) 评论(0) 推荐(0)
 
PAT A1143 Lowest Common Ancestor (30 分)——二叉搜索树,lca
摘要: 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. A binary search tree (BST) i 阅读全文
posted @ 2019-02-22 10:54 tccbj 阅读(273) 评论(0) 推荐(0)
 
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页