Graph
文章平均质量分 69
A_bigUncle
这个作者很懒,什么都没留下…
展开
-
[Week 3] LeetCode 785. Is Graph Bipartite?
LeetCode 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 independent s...原创 2018-09-22 10:12:11 · 221 阅读 · 0 评论 -
[Week 4] LeetCode 743. Network Delay Time
LeetCode 743. Network Delay Time问题描述:There are N network nodes, labelled 1 to N.Given times, a list of travel times as directed edges times[i] = (u, v, w), where u is the source node, v is the targ...原创 2018-09-28 15:39:08 · 257 阅读 · 0 评论 -
[Week 5] LeetCode 854. K-Similar Strings
LeetCode 854. K-Similar Strings问题描述:Strings A and B are K-similar (for some non-negative integer K) if we can swap the positions of two letters in A exactly K times so that the resulting string equa...原创 2018-10-07 19:26:00 · 413 阅读 · 0 评论