← Goldman Sachs questions

Build a wall with specific brick constraints.

Filed under Goldman Sachs

Given a wall of height H and width W, find the number of ways to build it using bricks of given dimensions such that no two bricks share a vertical edge across adjacent layers.

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.