968. Binary Tree Cameras

題目描述 Given a binary tree, we install cameras on the nodes of the tree. Each camera at a node can monitor its parent, itself, and its immediate children. Calculate the minimum number of cameras needed
相關文章
相關標籤/搜索