Check if All A's Appears Before All B's LeetCode solution in Python

1
class Solution:
2
def checkString(self, s: str) -> bool:
3
if "ba" in s:
4
return False
5
else:
6
return True

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0