485 pending 180 days 后跳槽# EB23 - 劳工卡
h*p
1 楼
给定一个社交网络数组S, 和两两朋友关系list F, 按F order的顺序,问到第几个时整
个社交网络就完全连通了
E.g.
S = {1, 2, 3, 4}
F = ((1,2), (3, 4), (1,4), (2,4))
Answer: 3. -> (1, 4)
个社交网络就完全连通了
E.g.
S = {1, 2, 3, 4}
F = ((1,2), (3, 4), (1,4), (2,4))
Answer: 3. -> (1, 4)