Trees: Is This a Binary Search Tree?

  • + 1 comment

    I agree, the purely functional approach is probably better in hindsight for any real life application. The solution passing the var down would have avoided possible external side effects where mine uses a global variable.