刷题
linglett
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Tree
Tree You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the ...原创 2019-08-13 18:27:47 · 192 阅读 · 0 评论 -
K - Wireless Network
K - Wireless Network 东南亚发生地震。亚洲合作医疗团队(ACM)已经与膝上电脑建立了无线网络,但意外的余震袭击,网络中的所有电脑都被破坏。计算机一台接一台地维修,网络逐渐恢复工作。由于硬件的限制,每台计算机只能与距离它不超过d米的计算机直接通信。但是每台计算机都可以看作是两台计算机之间通信的中介,也就是说,如果计算机A和计算机B可以直接通信,或者计算机C可以同时与A和B通信,那...原创 2019-08-10 09:11:08 · 239 阅读 · 0 评论 -
Agri-Net
Agri-Net Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course. Farmer John ordered a ...原创 2019-08-10 12:02:48 · 215 阅读 · 0 评论 -
小希的迷宫
小希的迷宫 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个房间有且仅有一条路径可以相通(除非走了回头路)。小希现在把她的设计图给你,让你...原创 2019-08-14 22:08:01 · 150 阅读 · 0 评论 -
拓扑排序
校园网主干是由N个节点(编号1…N)组成,这些节点之间有一些单向的网路连接。若存在一条网路连接(u,v)链接了节点u和节点v,则节点u可以向节点v发送信息,但是节点v不能通过该链接向节点u发送信息。 在刚感染病毒时,校园网立刻切断了一些网络链接,恰好使得剩下网络连接不存在环,避免了节点被反复感染。也就是说从节点i扩散出的病毒,一定不会再回到节点i。 当1个病毒感染了节点后,它并不会检查这个节点是否...原创 2019-08-12 09:17:16 · 192 阅读 · 0 评论 -
Binary Tree Traversals
A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binary trees called the left and right subtrees. There are three most important ways in which th...原创 2019-08-12 22:09:15 · 95 阅读 · 0 评论
分享