In this post I’ll be going over a solution to Leetcode problem 98. Validate Binary Search Tree.
The problem statement reads:
root of a binary tree, determine if it is a valid binary search tree (BST).
A valid BST is defined as follows:
- The left subtree of a…