14.8 Build minimum height BST from traversal data

#1

Can the sorted array contain duplicate entries?
If so, should the BST only store distinct entries or should it somehow represent duplicates?
(Storing duplicates could be achieved by storing counts in distinct nodes, or storing duplicate nodes.)

0 Likes

#2

With EPI Judge, I think you now can check the test data by yourself to answer this question :stuck_out_tongue:

0 Likes

#3

Good point. I forked it a few days ago but just looked at it. The answer is - no duplicate entries. :wink:
Nice work guys! :+1:t4:

0 Likes