Tree Diagonal Traversal
Goldman Sachs interview questions · Medium · Coding round · 6 tests
Traverse a binary tree diagonal by diagonal, where moving right stays on the same diagonal and moving left drops to the next one.
The full question, tests and reference solution are available with a plan that includes Goldman Sachs.
Run your code with Ctrl+Enter to see results.