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.