Why is my code for this BST algorithm question wrong? I am using same logic as the correct solution with one minor tweak and its causing an error

前端 未结 0 1904
春和景丽
春和景丽 2021-02-07 04:16

Question is to make the minimum height BST given a sorted array of integers. Logic is pretty much to set node to middle value and recursively do so for left and right subarrays.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题