Given strings X and Y containing only characters 'a' and 'b', determine if Y can be obtained from X using only two operations: 1) append 'a' to the end, or 2) reverse X and append 'b' to the end.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.