Skip to content

Commit e446fa2

Browse files
refactor 98
1 parent 945bcfd commit e446fa2

File tree

1 file changed

+0
-23
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-23
lines changed

src/main/java/com/fishercoder/solutions/_98.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22

33
import com.fishercoder.common.classes.TreeNode;
44

5-
/**
6-
* 98. Validate Binary Search Tree
7-
*
8-
* Given a binary tree, determine if it is a valid binary search tree (BST).
9-
10-
Assume a BST is defined as follows:
11-
12-
The left subtree of a node contains only nodes with keys less than the node's key.
13-
The right subtree of a node contains only nodes with keys greater than the node's key.
14-
Both the left and right subtrees must also be binary search trees.
15-
16-
Example 1:
17-
2
18-
/ \
19-
1 3
20-
Binary tree [2,1,3], return true.
21-
22-
Example 2:
23-
1
24-
/ \
25-
2 3
26-
Binary tree [1,2,3], return false.
27-
*/
285
public class _98 {
296

307
public static class Solution1 {

0 commit comments

Comments
 (0)