@@ -21,30 +21,30 @@ class Node {
21
21
22
22
<p >  ; </p >
23
23
<p ><strong >Example 1:</strong ></p >
24
- <img alt =" " src =" https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0500-0599/0510.Inorder%20Successor%20in%20BST%20II/images/285_example_1.PNG " style =" width : 122px ; height : 117px ;" />
24
+ <img alt =" " src =" https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0500-0599/0510.Inorder%20Successor%20in%20BST%20II/images/285_example_1.png " style =" width : 122px ; height : 117px ;" />
25
25
<pre >
26
26
<strong >Input:</strong > tree = [2,1,3], node = 1
27
27
<strong >Output:</strong > 2
28
28
<strong >Explanation:</strong > 1' ; s in-order successor node is 2. Note that both the node and the return value is of Node type.
29
29
</pre >
30
30
31
31
<p ><strong >Example 2:</strong ></p >
32
- <img alt =" " src =" https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0500-0599/0510.Inorder%20Successor%20in%20BST%20II/images/285_example_2.PNG " style =" width : 246px ; height : 229px ;" />
32
+ <img alt =" " src =" https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0500-0599/0510.Inorder%20Successor%20in%20BST%20II/images/285_example_2.png " style =" width : 246px ; height : 229px ;" />
33
33
<pre >
34
34
<strong >Input:</strong > tree = [5,3,6,2,4,null,null,1], node = 6
35
35
<strong >Output:</strong > null
36
36
<strong >Explanation:</strong > There is no in-order successor of the current node, so the answer is null.
37
37
</pre >
38
38
39
39
<p ><strong >Example 3:</strong ></p >
40
- <img alt =" " src =" https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0500-0599/0510.Inorder%20Successor%20in%20BST%20II/images/285_example_34.PNG " style =" width : 438px ; height : 335px ;" />
40
+ <img alt =" " src =" https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0500-0599/0510.Inorder%20Successor%20in%20BST%20II/images/285_example_34.png " style =" width : 438px ; height : 335px ;" />
41
41
<pre >
42
42
<strong >Input:</strong > tree = [15,6,18,3,7,17,20,2,4,null,13,null,null,null,null,null,null,null,null,9], node = 15
43
43
<strong >Output:</strong > 17
44
44
</pre >
45
45
46
46
<p ><strong >Example 4:</strong ></p >
47
- <img alt =" " src =" https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0500-0599/0510.Inorder%20Successor%20in%20BST%20II/images/285_example_34.PNG " style =" width : 438px ; height : 335px ;" />
47
+ <img alt =" " src =" https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0500-0599/0510.Inorder%20Successor%20in%20BST%20II/images/285_example_34.png " style =" width : 438px ; height : 335px ;" />
48
48
<pre >
49
49
<strong >Input:</strong > tree = [15,6,18,3,7,17,20,2,4,null,13,null,null,null,null,null,null,null,null,9], node = 13
50
50
<strong >Output:</strong > 15
0 commit comments