GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing leetcode.cn — 965. 单值二叉树 - 力扣(LeetCode) 题目描述 题目描述 题解 题解 提交记录 提交记录 简单 如果二叉树每个节点都具有相同的值,那么该二叉树就是单值二叉树。 只有给定的树是单值二叉树时,才返回
示例 1:
输入:[1,1,1,1,1,null,1] 输出:true 示例 2:
输入:[2,2,2,5,2] 输出:false
提示:
代码 代码 测试用例 测试用例 测试结果 测试结果 |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |