You are viewing a single comment's thread. Return to all comments →
According to the definition , there is no duplicates (same key value node) in BST. See https://en.wikipedia.org/wiki/Binary_search_tree.
I think you should consider duplicate inputs, but the result BST should not contain duplicates.
Seems like cookies are disabled on this browser, please enable them to open this website
Binary Search Tree : Insertion
You are viewing a single comment's thread. Return to all comments →
According to the definition , there is no duplicates (same key value node) in BST. See https://en.wikipedia.org/wiki/Binary_search_tree.
I think you should consider duplicate inputs, but the result BST should not contain duplicates.