Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserted A Repeat Value - BST
#1
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?
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)