← Goldman Sachs questions

Implement Heap and Tree Array Representation

Filed under Goldman Sachs

Implement a binary min-heap from scratch using a dynamic array, supporting insert, extract-min, and heapify operations. Also, discuss the memory and traversal trade-offs of using an array-based tree…

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.