This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Вы пытаетесь рассадить n интровертов за столы в опенспейсе. | |
# Интроверт не может сидеть за столом, если у него справа или слева есть сосед. | |
# По текущей занятости столов определите, можно ли посадить n интровертов в офисе. | |
def introverts_office_placement(office, n): | |
""" | |
:type office: List[int] Массив заполнен 0 и 1 -- 0 если стол свободен, 1 если занят | |
:type n: int | |
:rtype: bool | |
""" |