This problem is better suited under BFS instead of DFS.
Course: https://www.educative.io/collection/10370001/6391886354579456
Lesson: Minimum Height Trees - [PYTHON] Coding Interview Patterns: Unpublished Lessons
This problem is better suited under BFS instead of DFS.
Course: https://www.educative.io/collection/10370001/6391886354579456
Lesson: Minimum Height Trees - [PYTHON] Coding Interview Patterns: Unpublished Lessons