Feature:刷题
@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
@kidultff

PAT-A 真题- 1086. Tree Traversals Again

原题干:An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6) is traversed, the stack operations are: pus ...
  • 0
  • 1
@kidultff

PAT-A 真题- 1020. Tree Traversals

原题干:Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the corresponding binary tre ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1091. Acute Stroke

原题干:One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in each MRI slice, your job is to calculate the vol ...
  • 0
  • 1