1784. Check if Binary String Has at Most One Segment of Ones Обновлено: 2024-03-12 1 мин Algorithms , LeetCode СодержаниеLeetCode problem 1784class Solution: def checkOnesSegment(self, s: str) -> bool: return '01' not in s