摘要: Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it's set of nodes into two ind 阅读全文
posted @ 2020-08-05 13:29 Schwifty 阅读(107) 评论(0) 推荐(0)
摘要: There are n cities connected by m flights. Each flight starts from city u and arrives at v with a price w. Now given all the cities and flights, toget 阅读全文
posted @ 2020-08-05 09:06 Schwifty 阅读(163) 评论(0) 推荐(0)
摘要: There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct 阅读全文
posted @ 2020-08-05 02:25 Schwifty 阅读(128) 评论(0) 推荐(0)