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

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 2124

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