PAT
PAT
czhunian
这个作者很懒,什么都没留下…
展开
-
PAT 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 ...原创 2019-05-10 23:41:13 · 89 阅读 · 0 评论 -
PAT 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 cor...原创 2019-05-09 20:05:43 · 109 阅读 · 0 评论 -
PAT 1019 General Palindromic Number
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. All single digit numbers are palindromic numbers...原创 2019-05-09 19:47:04 · 97 阅读 · 0 评论