Closed berkelmas closed 3 years ago
The ids of the roots were swapped in the PR, actually fixed in a6e72cd6c1c7e5a4fde916c4140d6d2b4076762e. Thanks again for pointing this out I will try and be more careful in upcoming PRs so that this doesn't happen.
Sure. You're welcome
Accidentally in this PR, I have make id[root] = 0 instead of making sz[root] = 0. In this PR, I am fixing that by changing the modified array as sz.