Рет қаралды 9,523
In this video we are solving an interview question that is popular with Facebook, Amazon, and Microsoft: All Nodes Distance K in Binary Tree (LeetCode # 863).
It's an interesting problem that can be solved in a clever way by transforming the given tree into a graph and then performing a BFS to reach the solution.