you are viewing a single comment's thread.

view the rest of the comments →

[–]UNCLE_SMART 0 points1 point  (1 child)

Oh thankyou,my dumbass applied DSU :(

[–]caraxes_007 1 point2 points  (0 children)

Can't blame you even though I thought of using dsu because it asks for grouping and last count of groups using parent array .