Validate BST

Medium

📝 Description

Determine if a binary tree is a valid binary search tree

Input Format

Binary tree represented as list (level-order)

Output Format

true/false

Constraints

Number of nodes ≤ 10^4

🔍 Sample Input

[5,1,4,null,null,3,6]
            

✅ Sample Output

false
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run