Feature:PAT-甲级
@kidultff

PAT-A 真题- 1066. Root of AVL Tree

原题干:An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore this ...
  • 0
  • 4
@kidultff

PAT-A 真题- 1076. Forwards on Weibo

原题干:Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a user makes a post on ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1043. Is It 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 conta ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1053. Path of Equal Weight

原题干:Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L is defined to be the sum of the weights of all the nodes along the path from R to any l ...
  • 0
  • 1
@kidultff

PAT-A 真题- 1102. Invert a Binary Tree

原题干:The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so fuck off.Now it's your turn to prove that YOU CAN invert ...
  • 0
  • 0