Available question text
Place up to given numbers of introverts and extroverts on an m×n grid (neighbors are 4-directional) where each type has different base happiness and per-neighbor gain/loss, and maximize total grid happiness. This requires state-compressed dynamic programming (row-wise/backtracking with encoded neighbor states and remaining counts) to handle local interactions and limited supplies.
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 1659. Maximize Grid Happiness
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source