|
0
I was reading this and started to solve the problems and suddenly whole blog just started showing this. Now I can't see the blog. Unable to parse markup [type=CF_MARKDOWN] |
|
+3
Thanks bro, My bad, It worked |
|
0
Damn, now I feel like this blog is important for many coders :P |
|
0
I added this-> |
|
+3
Yeah, sad! |
|
+10
Thank you very much! |
|
0
Yes, I did it, But It didn't work somehow |
|
0
Yeah, I also think so |
|
0
Thank you! |
|
+3
|
|
0
Can someone please give the link for problemset. |
|
На
shashankagrawal →
Getting tle in using Common segtree in HLD, but not in Different segtree for each heavy path, 6 лет назад
0
Auto comment: topic has been updated by shashankagrawal (previous revision, new revision, compare). |
|
На
shashankagrawal →
Getting tle in using Common segtree in HLD, but not in Different segtree for each heavy path, 6 лет назад
0
Ignore my above comment understand the mistake now. Again thank you!!! |
|
На
shashankagrawal →
Getting tle in using Common segtree in HLD, but not in Different segtree for each heavy path, 6 лет назад
-8
Thank you very much, I used what you told and it worked. |
|
На
shashankagrawal →
Getting tle in using Common segtree in HLD, but not in Different segtree for each heavy path, 6 лет назад
+3
But I have also done ~~~~~ if(u == p) continue; ~~~~~ So, If any node has atleast 1 child and And Sorry for the confusion, But in the second submission I used a different idea for forming the heavy paths, which is I am using length of heavy path down the node instead of subtree size of that node. |