1784. Check if Binary String Has at Most One Segment of Ones

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 1784

class Solution:
    def checkOnesSegment(self, s: str) -> bool:
        return '01' not in s