Re: [闲聊] 每日leetcode

楼主: sustainer123 (caster)   2024-04-21 14:22:00
※ 引述《Rushia (早瀬ユウカの体操服 )》之铭言:
: https://leetcode.com/problems/find-if-path-exists-in-graph/description
: 1971. Find if Path Exists in Graph
: 给你一个阵列表示的图,判断 source 和 destination 是否连通。
: 思路:
: 1.把所有边的点加到并查集,然后查这两点有没有连通就好。
: py code:
:
作者: DJYOSHITAKA (Evans)   2024-04-21 14:27:00
别卷了

Links booklink

Contact Us: admin [ a t ] ucptt.com