add: 将有序数组转换为二叉搜索树

This commit is contained in:
2020-07-06 08:05:15 +08:00
parent 146b33a651
commit 41aa639602
2 changed files with 2 additions and 9 deletions

View File

@ -1,11 +1,4 @@
/**
* Definition for a binary tree node.
*/
function TreeNode(val) {
this.val = val
this.left = this.right = null
}
import TreeNode from '../../test/tree/TreeNode'
/**
* @param {number[]} nums
* @return {TreeNode}