ALL NODES DISTANCE K IN BINARY TREE | PYTHON | LEETCODE # 863

Cracking FAANG
Cracking FAANG
6.9 هزار بار بازدید - 3 سال پیش - In this video we are
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.
3 سال پیش در تاریخ 1400/12/19 منتشر شده است.
6,979 بـار بازدید شده
... بیشتر