[取暖] union find algo

楼主: DJYOSHITAKA (Evans)   2023-09-29 00:09:56
拿这个去解number of connected component
结果好像有点慢
是不是要做path compression
好难喔
我还是回公司写for循环就好了

Links booklink

Contact Us: admin [ a t ] ucptt.com