ANCESTOR problem

problem : ANCESTOR
i actually thought about ->traversing down the both the trees parallely from root to leaves and binary lifting of the bfs/dfs array…
can anyone share his approach…?

Maybe this can help Invitation to SnackDown 2017 Elimination Round & its Replay! - Codeforces?
There are no editorials for this contest :frowning:

shit …i forgot to look for its invitation blog on cf …thanx buddy

1 Like

Do post soln if you get the answer. :stuck_out_tongue: