Convert tree to indirect graph, then use BFS to get K distance from target.
Error:
- Do not fully understand the BFS, when wants to get smallest distance, or K distance, it is very useful to think about it.
Convert tree to indirect graph, then use BFS to get K distance from target.
Error: