Hi:
I have a question on this problem.
In your BST implementation, you explained that adding elements can lead to duplication. But in the code you provided, there’s nothing related to “deduplication.” Do you assume that your BST insertion will eliminate duplicated insertions?
Thanks.