Number of elements smaller than root in preorder traversal of a BST

mediumLast edited: August 2, 2025