Open furkankocyigit opened 1 year ago
should the binary search tree look like as in the your comment or
something like this?
Printing methodology does not matter, but it should be balanced an depth should be minimum.
Why did you close this? Did you finish the task and open the PR?
Given a sorted (increasing order) array with unique integer elements, write an algorithm to create a binary search tree with minimal height.
Ex: input array {1, 3, 6, 8, 10, 12, 14, 18, 22}
Expected BST:
Locations do not have to be exactly the same in the example but should be something really similar