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






tccbj

 
 

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

2019年2月20日

PAT A1155 Heap Paths (30 分)——完全二叉树,层序遍历,特定dfs遍历
摘要: 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 @ 2019-02-20 15:21 tccbj 阅读(226) 评论(0) 推荐(0)
 

2019年2月19日

PAT A1153 Decode Registration Card of PAT (25 分)——多种情况排序
摘要: 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 @ 2019-02-19 22:46 tccbj 阅读(284) 评论(0) 推荐(0)
 
PAT A1034 Head of a Gang (30 分)——图遍历DFS,字符串和数字的对应保存
摘要: One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is re 阅读全文
posted @ 2019-02-19 17:19 tccbj 阅读(126) 评论(0) 推荐(0)
 
PAT A1033 To Fill or Not to Fill (25 分)——贪心
摘要: With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas s 阅读全文
posted @ 2019-02-19 16:36 tccbj 阅读(183) 评论(0) 推荐(0)
 

2019年2月18日

PAT A1029 Median (25 分)——队列
摘要: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 1 阅读全文
posted @ 2019-02-18 21:11 tccbj 阅读(181) 评论(0) 推荐(0)
 
PAT A1028 List Sorting (25 分)——排序,字符串输出用printf
摘要: Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each input file contains one test 阅读全文
posted @ 2019-02-18 20:01 tccbj 阅读(116) 评论(0) 推荐(0)
 
PAT A1026 Table Tennis (30 分)——队列
摘要: A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open 阅读全文
posted @ 2019-02-18 19:08 tccbj 阅读(209) 评论(0) 推荐(0)
 
PAT A1024 Palindromic Number (25 分)——回文,大整数
摘要: A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number 阅读全文
posted @ 2019-02-18 14:22 tccbj 阅读(204) 评论(0) 推荐(0)
 

2019年2月17日

PAT A1021 Deepest Root (25 分)——图的BFS,DFS
摘要: A graph which is connected and acyclic can be considered a tree. The hight of the tree depends on the selected root. Now you are supposed to find the 阅读全文
posted @ 2019-02-17 21:21 tccbj 阅读(422) 评论(0) 推荐(0)
 
PAT A1020 Tree Traversals (25 分)——建树,层序遍历
摘要: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou 阅读全文
posted @ 2019-02-17 21:02 tccbj 阅读(136) 评论(0) 推荐(0)
 
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页