Algorithms Check if tree is BST suggest change

If a given input tree follows Binary search tree property or not

For example

if the input is:

Output should be false:

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

If the input is:

Output should be true

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents