
Bfs Distances Unweighted Graph
Cho một đồ thị liên thông vô hướng (từ một đỉnh luôn tồn tại đường…
Is Tournament
Cho một đồ thị có hướng Kiểm tra xem đồ thị trên có phải là tournament (từ…
CountSpanningTree
Given an un-directed, complete graph with n vertexes. Count the number of spanning tree in…
giveMeRadius
Given a connected undirected weighted graph (possibly with cycles) as its adjacency matrix, calculate its radius. The radius of…
equalitree
Consider a tree structure whose every node holds a Boolean value of either true or false. We'll call…
friendGroups
There are n kids in the class. As school year has just began, the kids barely know…