Challenge: Is It a BST?
Let’s determine if a binary tree is a BST or not.
Problem
Find out if a given binary tree is a BST.
Input
A BST.
Output
Return true
if the tree is a BST, false
otherwise.
Sample input
Access this course and 1400+ top-rated courses and projects.