mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 19:01:47 +08:00
批量更新数据
This commit is contained in:
@@ -1 +1,22 @@
|
||||
<p>实现一个函数,检查一棵二叉树是否为二叉搜索树。</p><strong>示例 1:</strong><pre><strong>输入:</strong><br> 2<br> / \<br> 1 3<br><strong>输出:</strong> true<br></pre><strong>示例 2:</strong><pre><strong>输入:</strong><br> 5<br> / \<br> 1 4<br> / \<br> 3 6<br><strong>输出:</strong> false<br><strong>解释:</strong> 输入为: [5,1,4,null,null,3,6]。<br> 根节点的值为 5 ,但是其右子节点值为 4 。</pre>
|
||||
<p>实现一个函数,检查一棵二叉树是否为二叉搜索树。</p>
|
||||
<strong>示例 1:</strong>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>
|
||||
2
|
||||
/ \
|
||||
1 3
|
||||
<strong>输出:</strong>true
|
||||
</pre>
|
||||
<strong>示例 2:</strong>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>
|
||||
5
|
||||
/ \
|
||||
1 4
|
||||
/ \
|
||||
3 6
|
||||
<strong>输出:</strong>false
|
||||
<strong>解释:</strong>输入为: [5,1,4,null,null,3,6]。
|
||||
根节点的值为 5 ,但是其右子节点值为 4 。</pre>
|
||||
|
Reference in New Issue
Block a user