← Goldman Sachs questions
CodingEasyReported in a candidate post, Jul 2025

Implement an n-ary tree

Filed under Goldman Sachs

Implement a generic n-ary tree, where each node stores a value and any number of children. Support adding a child, finding a node, traversing it (preorder and level order) and computing its height…

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.