Available question text
Given a target m×n grid, determine whether you can produce it by printing each color at most once as a solid axis-aligned rectangle that may cover previously printed cells — equivalently, compute each color’s bounding rectangle, add a dependency edge when one color appears inside another’s rectangle, and return true iff this partial order has no cycles (i.e., a valid topological print order exists).
Related questions
Continue with questions that share topics or the same question type.
- Strange Printer
Coding
- Toss Strange Coins
Coding
- 0/1 Knapsack Problem with Time Complexity Optimization
Coding
- 01 Matrix
Coding
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 1591. Strange Printer II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source