Validate Binary Search Tree

Given a binary tree, determine if it is a valid binary search tree (BST).

recursive version:

iterative version:

Comments

Popular posts from this blog

Maximum Gap

[ITint5] Maximum Subarray for a Circular Array

[CC150] Chapter 4 Trees and Graphs