I tried out the problem Hanuman and tree but could not think of any solution. Please someone help.
It’s a similar to binary lifting. Maybe search that and you’ll get a slight hint.
1 Like
Thanks