1349. Maximum Students Taking Exam
Last updated
Last updated
**Input:** seats = [["#",".","#","#",".","#"],
[".","#","#","#","#","."],
["#",".","#","#",".","#"]]
**Output:** 4
**Explanation:** Teacher can place 4 students in available seats so they don't cheat on the exam. **Input:** seats = [[".","#"],
["#","#"],
["#","."],
["#","#"],
[".","#"]]
**Output:** 3
**Explanation:** Place all students in available seats. **Input:** seats = [["#",".","**.**",".","#"],
["**.**","#","**.**","#","**.**"],
["**.**",".","#",".","**.**"],
["**.**","#","**.**","#","**.**"],
["#",".","**.**",".","#"]]
**Output:** 10
**Explanation:** Place students in available seats in column 1, 3 and 5.