Check if postordered array forms a binary search tree

mediumLast edited: August 2, 2025