2124. Check if All A's Appears Before All B's

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

Содержание

LeetCode problem 2124

class Solution:
    def checkString(self, s: str) -> bool:
        return "ba" not in s