#98

Validate Binary Search Tree

medium· Treesruns: 0

Given the root of a binary tree, determine if it is a valid binary search tree. A valid BST is one where the left subtree of every node contains only values less than the node's value, the right subtree contains only values greater, and both subtrees are themselves BSTs.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.