Given an array of unique integers preorder, return true if it represents the correct preorder traversal sequence of a binary search tree, or false otherwise.
Constraints:
preorder.length
preorder[i]
All the elements of preorder are unique.
Given an array of unique integers preorder, return true if it represents the correct preorder traversal sequence of a binary search tree, or false otherwise.
Constraints:
preorder.length
preorder[i]
All the elements of preorder are unique.