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.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.