"abc" together anywhere in the current string: at the start, at the end, or between any two characters.
Given a string text, return true if it can be built by such steps, and false otherwise.text="ababcc" → True
"" → "abc" → "ab" + "abc" + "c" = "ababcc".
text="abcabcabc" → True
Three inserts of "abc", each at the end.
text="acbabc" → False
Removing the trailing "abc" leaves "acb", which no sequence of inserts can produce.
text consists only of the letters a, b and ctext="ababcc"
True
Run checks the first 3 tests in your browser. Submit checks all 142 tests on the server, hidden ones included.