Thanksgiving Sale: Use Coupon Code THANKS25 to Get Extra 25% Off.
dfs that takes a node and a list as arguments.dfs on the left child.dfs on the right child.dfs function on root1 and root2, each time with a new list to store leaf values.true; otherwise, return false.