Tetris-Style Figure Placement

Asked at Capital One · Coding & Leetcode-style Questions · Difficulty: Medium · Last asked Apr 29, 2026

Given five fixed Tetris-like shapes and an arrival order, place each shape on an `n x m` grid at the smallest available row-then-column position and label the occupied cells with the shape's arrival number. Brute-force scan is the intended solution; code volume is the challenge.

Loading the problem…