educative.io

Educative

Return False in the search method?

Hello,
Shouldn’t the search method in the binary search tree return False if the value isn’t in the tree?
Best regards
Miguel


Course: Educative: Interactive Courses for Software Developers
Lesson: Educative: Interactive Courses for Software Developers

Hi Miguel
Yeah we can return False if we couldn’t found the value. We’ll update it soon.
Thank you for your suggestion.