thats kinda long Can u give an idea on path on queries now plss?
Give us the outline for the solutions for now if itβs gonna take that much time for writing the editorials.
precompute answer for all nodes ⦠use prefix sum to find the answer of a particular node⦠then use LCA to answer queries
1 Like
https://www.codechef.com/viewsolution/38011436
Can anyone help me why i am getting wrong answer , i am unable to find it.
Problem Link-CFS2002 Problem - CodeChef
Can anyone tell the solution of the last problem - Minimum Path Colour - (the Dp one) ?
Amazing contest and editorial too ! Great efforts
2 Likes