LeetCode-Problems-Solution-Book icon indicating copy to clipboard operation
LeetCode-Problems-Solution-Book copied to clipboard

98. Validate Binary Search Tree

Open arihant-dev opened this issue 4 years ago • 8 comments

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

arihant-dev avatar Oct 02 '21 07:10 arihant-dev

Please assign me this problem.

leninmeher avatar Oct 02 '21 09:10 leninmeher

@leninmeher @arihantthriwe Which Language guys?

thepiyushway avatar Oct 02 '21 14:10 thepiyushway

C++

leninmeher avatar Oct 02 '21 14:10 leninmeher

@leninmeher Assigned in C++

thepiyushway avatar Oct 02 '21 14:10 thepiyushway

C

arihant-dev avatar Oct 02 '21 16:10 arihant-dev

Should i create a new branch...??

leninmeher avatar Oct 03 '21 04:10 leninmeher

@arihantthriwe I'll assign this to you in C, but now this repo has been excluded from Hacktoberfest 2021, please read the pinned issue of this repo to know more :')

thepiyushway avatar Oct 03 '21 14:10 thepiyushway

@arihantthriwe I'll assign this to you in C, but now this repo has been excluded from Hacktoberfest 2021, please read the pinned issue of this repo to know more :')

thepiyushway avatar Oct 03 '21 14:10 thepiyushway