Related to Binary Search Trees important

Revision en2, by Shellhead96, 2017-08-08 22:05:52

You are given an array of n integers. You need to insert these elements into 2 binary search trees(BSTs), such that maximum(height(BST-1), height(BST-2)) could be minimized. Elements can be inserted into BST in any order. (Constraints — 1<=n<=10^5)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Shellhead96 2017-08-08 22:05:52 11
en1 English Shellhead96 2017-08-08 19:57:58 284 Initial revision (published)