โ† Expedia questions

Implement Rand7 using Rand5, Equal 0s and 1s Window, LCA

Filed under Expedia

The question

Implement Rand7() using given Rand5(). Find the maximum length window in a binary stream where the number of 0s and 1s are equal. Find the lowest common ancestor of two nodes in a binary tree.

No write-up yet. Related questions below have one.

Related Expedia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.