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

98. Validate Binary Search Tree

Open arihantthriwe opened this issue 3 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

arihantthriwe avatar Oct 02 '21 07:10 arihantthriwe

Please assign me this problem.

leninmeher avatar Oct 02 '21 09:10 leninmeher

@leninmeher @arihantthriwe Which Language guys?

piyushsharma220699 avatar Oct 02 '21 14:10 piyushsharma220699

C++

leninmeher avatar Oct 02 '21 14:10 leninmeher

@leninmeher Assigned in C++

piyushsharma220699 avatar Oct 02 '21 14:10 piyushsharma220699

C

arihantthriwe avatar Oct 02 '21 16:10 arihantthriwe

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 :')

piyushsharma220699 avatar Oct 03 '21 14:10 piyushsharma220699

@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 :')

piyushsharma220699 avatar Oct 03 '21 14:10 piyushsharma220699