Available question text
Count how many ways to build an h-row wall of given width by arranging bricks in each row (bricks of integer lengths summing to the width) so that there is no vertical seam running uninterrupted from top to bottom. Key idea: enumerate valid row seam patterns, treat two rows as compatible if they have no common seam positions, and count height-h sequences of compatible rows via DP or matrix exponentiation (modulo a large prime).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2184. Number of Ways to Build Sturdy Brick Wall
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source