问题:Leetcode 968. 监控二叉树
给定一个二叉树,我们在树的节点上安装摄像头。
节点上的每个摄影头都可以监视其父对象、自身及其直接子对象。
计算监控树的所有节点所需的最小摄像头数量。
/*** Definition for a binary tree node.* struct TreeNo…
利用emitter封装工具类,使得父组件与子组件实现事件监听。 注意:只能用真机调试,在预览器会提示
The emitter.emit interface in the Previewer is a mocked implementation and may behave differently than on a real device.
调用示例 i…