avinash201199 / avinash201199/DSA-Questions
Binary Search Tree Validation
Open
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.