-
- All Implemented Interfaces:
public final class Solution
Example: var ti = TreeNode(5) var v = ti.
val
Definition for a binary tree node. class TreeNode(varval
: Int) { var left: TreeNode? = null var right: TreeNode? = null }
-
-
Constructor Summary
Constructors Constructor Description Solution()
-
Method Summary
Modifier and Type Method Description final TreeNode
sortedArrayToBST(IntArray num)
-
-
Method Detail
-
sortedArrayToBST
final TreeNode sortedArrayToBST(IntArray num)
-
-
-
-