注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
1个小时电面 印度人面的 想用union find做 code没写完。。直接跪了 hat john1985, John and john123 are the same person by their contact information.
We should output
[[ 0, 2, 3], [1]] (0,2,3 are the same person and 1 is another one)
|