halfrost/LeetCode-Go

a problem with code

zhangbo2008 opened this issue · 4 comments

if proot == len(uf.parent)-1 {

感觉这个地方应该是:

应该是 uf.count[proot]== len(uf.parent)-1