Please read the new rule regarding the restriction on the use of AI tools. ×

How to Remove an Index from a Disjoint Union Set Graph and Its Subtrees

Revision en2, by anirudhmittal21k12k, 2023-06-10 17:00:37

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 submission 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)