Available question text
Given a dynamic row of seats with operations that occupy or free individual seats, implement a query that finds and optionally reserves k consecutive available seats (or reports failure). The core challenge is to maintain and query maximal free segments efficiently under many updates, typically solved with interval/segment-tree or ordered-set techniques.
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
Google
Leetcode 3140. Consecutive Available Seats II
Reported Sep 6, 2024 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source