Leetcode 968(Hard) Binary Tree Cameras: Simple C++ Solution

Описание к видео Leetcode 968(Hard) Binary Tree Cameras: Simple C++ Solution

In this video, I provide a simple solution with an explanation to the Leetcode 968: Binary Tree Cameras in the hard category. The problem is a tricky tree traversal problem and is optimally solved by the combination of postorder DFS and Greedy allocation. Hence solving the problem in O(N) time.

Комментарии

Информация по комментариям в разработке