A cinema has n rows of seats, numbered from n, with
You are given the integer n and a reservedSeats, where reservedSeats[i] = [row, col] indicates that the seat at row row and column col is already reserved.
A four person family requires four adjacent seats in the same row. Seats separated by aisles (between seats
Seats
Seats
Seats
Return the maximum number of four person families you can seat in the cinema.
Note: A single row can seat at most
families (specifically, one in seats , , , and one in seats , , , ).
Constraints:
n
reservedSeats.length n
reservedSeats[i].length
reservedSeats[i][0] n
reservedSeats[i][1]
All reservedSeats[i] are distinct.
A cinema has n rows of seats, numbered from n, with
You are given the integer n and a reservedSeats, where reservedSeats[i] = [row, col] indicates that the seat at row row and column col is already reserved.
A four person family requires four adjacent seats in the same row. Seats separated by aisles (between seats
Seats
Seats
Seats
Return the maximum number of four person families you can seat in the cinema.
Note: A single row can seat at most
families (specifically, one in seats , , , and one in seats , , , ).
Constraints:
n
reservedSeats.length n
reservedSeats[i].length
reservedSeats[i][0] n
reservedSeats[i][1]
All reservedSeats[i] are distinct.