BFS
文章平均质量分 85
DrinkM1lk
这个作者很懒,什么都没留下…
展开
-
PAT甲级 1076 Forwards on Weibo (30 分)
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 Weibo, all his/her followers can vi原创 2021-09-01 21:16:58 · 53 阅读 · 0 评论 -
PAT甲级 1099 Build A Binary Search Tree (30 分)
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 only nodes with keys greater th原创 2021-08-31 20:43:52 · 50 阅读 · 0 评论