LeetCode

Verify Preorder Sequence in Binary Search Tree

Click here for an explanation.