Help in implementation of dynamic connectivity problem
Hello I recently learned DCP trick. I had tried implementing it but my implementation give WA on DYNACON1 of SPOJ and MLE on CF 100551.
Can someone please suggest what is wrong in the solution or can give any better implementations?
Thanks!
Round 948 Div 2 Solution Discussion (with Jan)