You are given an seats representing a classroom seating arrangement, where:
seats[i][j] == '.' represents an available seat.
seats[i][j] == '#' represents a broken seat.
A student seated at position (i, j) can see the exam paper of any student seated in the following adjacent positions:
Directly to the left: (i, )
Directly to the right: (i, )
Diagonally to the front left: (i - , )
Diagonally to the front right: (i - , )
Students cannot see the papers of those sitting directly in front of them or behind them.
Return the maximum number of students who can take the exam simultaneously without any student being able to view another student’s work.
Constraints:
seats contains only the characters '.' and '#'.
seats.length
seats[i].length
You are given an seats representing a classroom seating arrangement, where:
seats[i][j] == '.' represents an available seat.
seats[i][j] == '#' represents a broken seat.
A student seated at position (i, j) can see the exam paper of any student seated in the following adjacent positions:
Directly to the left: (i, )
Directly to the right: (i, )
Diagonally to the front left: (i - , )
Diagonally to the front right: (i - , )
Students cannot see the papers of those sitting directly in front of them or behind them.
Return the maximum number of students who can take the exam simultaneously without any student being able to view another student’s work.
Constraints:
seats contains only the characters '.' and '#'.
seats.length
seats[i].length