Will the code described here work well with outputs other than 0 to n
Disjoint Set Union find algorithm
In those cases map will be better i think.
Will the code described here work well with outputs other than 0 to n
In those cases map will be better i think.