add: 验证二叉搜索树

This commit is contained in:
2020-05-05 18:25:52 +08:00
parent b806ec7959
commit aa83ce62e9
6 changed files with 82 additions and 42 deletions

7
test/tree/TreeNode.js Normal file
View File

@ -0,0 +1,7 @@
export default class TreeNode {
constructor (val) {
this.val = val
this.left = null
this.right = null
}
}