题解
文章平均质量分 76
kdmvp_lin
这个作者很懒,什么都没留下…
展开
-
List Components
List Components 题目: For a given undirected graph with N vertices and E edges, please list all the connected components by both DFS (Depth First Search) and BFS (Breadth First Search). Assume that all the vertices are numbered from 0 to N-1. While searching原创 2022-03-21 21:38:23 · 305 阅读 · 0 评论 -
Saving James Bond(c++)
Saving James Bond(c++) 题目描述: This time let us consider the situation in the movie “Live and Let Die” in which James Bond, the world’s most famous spy, was captured by a group of drug dealers. He was sent to a small piece of land at the center of a lake fil原创 2022-03-21 17:59:00 · 1341 阅读 · 2 评论