Online Course Discussion Forum

Intro to Algorithms

 
 
Picture of Aiden Jin
Intro to Algorithms
by Aiden Jin - Thursday, August 6, 2020, 6:28 PM
 

For question 4, the BSTadd function doesn't seem to be adding to the Binary Tree and always returns True. So I'm confused as to how we are meant to build a Binary Search Tree using it.

 
Picture of John Lensmire
Re: Intro to Algorithms
by John Lensmire - Friday, August 7, 2020, 10:03 AM
 

Thanks for noticing this. You're correct there's a mistake here.

The code should be updated on the coursepage (and you should have just gotten a message about it as well).