16 days ago
The Check if All A's Appears Before All B's solution has been published
Given a string s consisting of only the characters 'a' and 'b', return true if every 'a' appears before every 'b' in the string. Otherwise, return false. Example 1: Input:...