PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
Marginalman
Re: [闲聊] 每日leetcode
楼主:
Rushia
(みけねこ的鼻屎)
2024-04-21 12:44:37
https://leetcode.com/problems/find-if-path-exists-in-graph/description
1971. Find if Path Exists in Graph
给你一个阵列表示的图,判断 source 和 destination 是否连通。
思路:
1.把所有边的点加到并查集,然后查这两点有没有连通就好。
py code:
作者:
digua
(地瓜)
2024-04-21 12:53:00
大师
作者:
oinishere
(是oin捏)
2024-04-21 13:09:00
大师
继续阅读
Re: [闲聊] 地下街卡店
F16V
Re: [闲聊] ASML
mer5566
[姆咪] 家里的绿畜老害问我
samia28
Re: [档案] 求专2~3团长好友
ILoverika
[闲聊] 关羽为什么
SydLrio
山田麻糬好吃吗?
CCRun
[瓦特] 羊羊的Have a nice day
ms0102173
Re: [原神] 我要存石抽仆人吗
KINMENKING
[闲聊] NGA的雀魂连动反串怎么那么好笑
kurohanaito
Re: 8591卖帐号的
ayasesayuki
Links
booklink
Contact Us: admin [ a t ] ucptt.com