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…?

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

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