随笔分类 -  graph(bfs)

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-08-09 17:52 猪猪🐷

286. Walls and Gates
摘要:You are given a m x n 2D grid initialized with these three possible values. Fill each empty room with the distance to its nearest gate. If it is impos 阅读全文

posted @ 2018-08-09 17:33 猪猪🐷

导航