The question asked in the video was, find the smallest height of a node that can be visited from subtree of x?
And here’s the graph. What I can’t understand how dp[3] and dp[9] value not same. What I know that they both have same parent so their value gonna be dp[3]=1 and dp[9]=1 as well. That’s what I think.