Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserted A Repeat Value - BST
If we insert a value that is the same as a previous one, our comparator function would return 0 when they are compared. Do we continue to insert it again somewhere else? Would it go to the left or the right of that node?
It says in the description variables will be declared once so the tree will contain unique values. So I assume he won't use values that are the same.

Forum Jump:

Users browsing this thread: 1 Guest(s)