Feature:PAT-甲级
@kidultff

PAT-A 真题- 1021. Deepest Root

原题干:A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root is called the de ...
  • 0
  • 1
@kidultff

PAT-A 真题- 1013. Battle Over Cities

原题干:It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we need to repair any other ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1034. Head of a Gang

原题干: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 related. The weight of a relation is defined to be the total time len ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1099. Build A Binary Search Tree

原题干:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key.The right subtree of a node contains ...
  • 0
  • 1
@kidultff

PAT-A 真题- 1064. Complete Binary Search Tree

原题干:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key.The right subtree of a node contains ...
  • 0
  • 0