Trees: Is This a Binary Search Tree?

  • + 2 comments

    How do you come up with such an elegant solution? What was your thought process? I wrote such an ugly code in comparison.