LeetCode-Go icon indicating copy to clipboard operation
LeetCode-Go copied to clipboard

a problem with code

Open zhangbo2008 opened this issue 3 years ago • 4 comments

https://github.com/halfrost/LeetCode-Go/blob/f0792d1179b1a6ab12fb9f906a3fc40ef68f9a80/template/UnionFind.go#L104

感觉这个地方应该是:

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

zhangbo2008 avatar Nov 24 '21 13:11 zhangbo2008