I have a very simple question regarding BST. I have seen several BST definitions regarding duplicate entries. Some define BST as not allowing duplicate entries, others that the node the left child is <= for the value of the nodes, and the right child is greater than the value of the node, and some definitions are the opposite (the left child is lt than node, the right child → =).
So my question is, what is the official definition (if one exists) for the BST in relation to duplicate entries? For example, what would a BST look like after pasting in: 3, 5, 10, 8, 5, 10?
Thanks in advance for clarifying the definition and answering my question!
source share