Check overlapping leaf nodes after 90 degree rotation
Filed under Amazon
The question
Given two binary trees, determine if rotating one tree by 90 degrees and placing it at the bottom of the other results in leaf nodes at the max depth overlapping/meeting each other.
No write-up yet. Related questions below have one.
Related Amazon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.