2018年10月4日

277. Find the Celebrity

摘要: Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is tha 阅读全文

posted @ 2018-10-04 17:46 Sheryl Wang 阅读(148) 评论(0) 推荐(0) 编辑

785.Is Graph Bipartite?

摘要: 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 @ 2018-10-04 15:26 Sheryl Wang 阅读(121) 评论(0) 推荐(0) 编辑

导航