Skip to content

Latest commit

 

History

History
61 lines (26 loc) · 715 Bytes

README_EN.md

File metadata and controls

61 lines (26 loc) · 715 Bytes

中文文档

Description

Given a sorted (increasing order) array with unique integer elements, write an algo­rithm to create a binary search tree with minimal height.

Example:

Given sorted array: [-10,-3,0,5,9],



One possible answer is: [0,-3,9,-10,null,5],which represents the following tree: 



          0 

         / \ 

       -3   9 

       /   / 

     -10  5 

Solutions

Python3

Java

...