solulubeta
Sign in
NeetCode 150 / Trees
07.11 · Problem

Validate Binary Search Tree

Medium DFS with value bounds 1 video LC 98 Pro

This problem is part of solulu Pro

Return true if the tree is a valid binary search tree: for every node, all values in its left subtree are strictly smaller and all values in its right subtree are strictly greater, and both subtrees are BSTs.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 56 of 150 · updated 2026-10-12