Count possible probabilistic preorder traversals of a BST
Filed under Directi
The question
Given a probabilistic preorder traversal of a binary search tree generated by a specific pseudo-code with 50% probability branches for children, calculate the total number of different probabilistic preorder traversals the algorithm might generate.
No write-up yet. Related questions below have one.
Related Directi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.