Available question text
Determine whether a string of 'a', 'b', 'c' can be formed from an empty string by repeatedly inserting the substring "abc" (equivalently, whether s can be reduced to empty by repeatedly deleting "abc" substrings). The core challenge is efficiently detecting and removing "abc" patterns (e.g., via an online suffix/stack check) for |s| ≤ 2·10^4.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Google
Leetcode 1003. Check If Word Is Valid After Substitutions
Reported Jun 11, 2026 · 1 source report
INTERN
Source snapshot: Nov 12, 2026
View source