← Goldman Sachs questions
CodingReported in a candidate post, Nov 2019

All insertion orders that produce a given BST

Filed under Goldman Sachs

Given the list of insertion values that builds a binary search tree, return all other insertion orders that produce exactly the same BST. For example, inserting (10, 2, 1, 7, 14, 12) gives the same…

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.