Horje

IF a given input tree follows binary search tree property or not - Check if a tree is BST or not - Algorithm
Learn
Algorithm - Check if a tree is BST or not - If a given input tree follows binary search tree property or not
If a given input tree follows Binary search tree property or not

For example

if the input is:

enter image description here (opens new window)

Output should be false:

As 4 in the left sub-tree is greater than the root value(3)

If the input is:

enter image description here (opens new window)

Output should be true

Read Article
https://develop.horje.com/learn/1434/reference