...

/

Validate Binary Search Tree

Validate Binary Search Tree

Try to solve the Validate Binary Search Tree problem.

Statement

Given the root of a binary tree, check whether it is a valid binary search tree (BST).

A binary tree is a valid BST if for every node:

  • The left subtree of a node contains only nodes with keys less than the ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy