avinash201199 / avinash201199/DSA-Questions

Binary Search Tree Validation

Open
#354 1 comment 0 reactions 1 assignee Claimed by @arihant-dev View on GitHub
hacktoberfest
Dominant language
C++
Stars
88
Forks
167
PR merge metrics
No merged PRs in 30d

Description

Given a binary tree root, return whether it's a binary search tree. A binary tree node is a binary search tree if :
------(C++)
1. All nodes on its left subtree are smaller than node.val
2. All nodes on its right subtree are bigger than node.val
3. All nodes hold the these properties.

Constraint :
n ≤ 100,000 where n is the number of nodes in root

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.