(root, min, max)
| 15 | }; |
| 16 | |
| 17 | const dfs = (root, min, max) => { |
| 18 | const left = isValidBST(root.left, min, root.val); |
| 19 | const right = isValidBST(root.right, root.val, max); |
| 20 | |
| 21 | return left && right; |
| 22 | }; |
| 23 | // TODO |
| 24 | /** |
| 25 | * https://leetcode.com/problems/validate-binary-search-tree/ |
no test coverage detected