Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
二分法。
{% codesnippet "./code/convert-sorted-array-to-binary-search-tree."+book.suffix, language=book.suffix %}{% endcodesnippet %}
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
二分法。
{% codesnippet "./code/convert-sorted-array-to-binary-search-tree."+book.suffix, language=book.suffix %}{% endcodesnippet %}