Construct BST
Given a sorted integer array A of size n, which contains all unique elements. You need to construct a balanced BST from this input array. Return the root of constructed BST.
Note: If array size is even, take first mid as root.
Input format:
Output Format:
Constraints:
Sample Input 1:
Sample Output 1:
Comments
Post a Comment
Please give us your valuable feedback