How can i solve COT2 — Count on a tree II?

Revision en1, by ISMAIL_HOSSAIN, 2017-04-22 09:56:13

Click Here i have tried 2 days but i didn't find any solution.i seached in google i found some solution but i couldn't understand of those code. i know LCA,HLD,dfs,segmeent tree.And solved some problem in differnt Oj. So, anyone can help me by sharing an idea how can i solve this problem.And also how can i implement this.

Tags segment tree, dfs and similar, hld, lca

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ISMAIL_HOSSAIN 2017-04-22 09:56:13 408 Initial revision (published)