965. Univalued Binary Tree
/**
965. Univalued Binary Tree
* https://leetcode.com/problems/univalued-binary-tree/description/
A binary tree is univalued if every node in the tree has the same value.? Return true if and only if the given tree is univalued. */ /** let lastValue = -1; while (stack.length > 0 || root != null) { }; (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |