How to delink an index from the disjoint union set graph and all its children?

Revision en1, by anirudhmittal21k12k, 2023-06-10 16:54:32

I am not able to find a blog or video which would describe how to delete an index and all its children while doing problem http://www.usaco.org/index.php?page=viewproblem2&cpid=644 . I really wanted a dsu solution. Here my implementation just have to implement delink function correctly please help. Here my suubmisstion link https://ide.usaco.guide/NX__5jD-hKhlahQ_iks

Tags dsu, usaco

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English anirudhmittal21k12k 2023-06-10 17:00:37 45 Tiny change: 'Here my suubmisstion link h' -> 'Here my submission link h'
en1 English anirudhmittal21k12k 2023-06-10 16:54:32 447 Initial revision (published)