← Goldman Sachs questions

Mirror a binary tree with parallelization

Filed under Goldman Sachs

Write a function to convert a binary tree into its mirror image. Discuss how to scale and optimize the solution when the tree contains one million nodes using parallel execution.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

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