Search
⌘K
Get Premium
Leetcode 2124. Check if All A's Appears Before All B's
Given a string of only 'a' and 'b', determine whether all 'a' characters occur before any 'b' characters — equivalently, ensure there is no 'a' that appears after a 'b'.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.