Rosetta Problems

Is Array a Preorder of Some ‌Binary Tree

https://leetcode.com/problems/is-array-a-preorder-of-some-binary-tree