Available question text
Place the maximum number of students on usable seats in an m×n grid so that no two are adjacent horizontally or diagonally between consecutive rows (to prevent left/right and upper-left/upper-right cheating), with broken seats unusable. With m,n ≤ 8, this is typically solved by enumerating valid row bitmasks and using DP over rows (bitmask compatibility / independent-set style).
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 1349. Maximum Students Taking Exam
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source