http://spoj.pl/problems/CHAIN can any one suggest how to go about...
animals can have only 3 different roots... how do u maintain it.. like u just came across a new animal.. how do u put it in a group.. this cant be done just by parent[i]==i stuff rite?? how to make sure that there is only 3 roots.. normal merge and initialization we do for this disjoint sets cant be done rite?? hlp me out ppl :) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.