Available question text
Given an array of strings, identify which words appear as substrings of any other word in the array (equivalently, find which words do NOT appear as substrings of any other word). With up to 100 unique lowercase strings of length ≤30, the core task is detecting pairwise substring containment. Optimize beyond the basic O(n^2 * L) brute force approach using techniques such as concatenation with separators and KMP/Z-algorithm, or trie-based methods.
Related questions
Continue with questions that share topics or the same question type.
- A Graph question, a string question, a couple of array questions.
Coding
- Asked LC medium problems. Problems were not difficult, even without preparation--all related to string manipulation or array manipulation.
Coding
- Check If String Is a Prefix of Array
Coding
- Check If String Is Transformable With Substring Sort Operations
Coding
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
Meta
String Matching in an Array (Substring Containment)
Reported Nov 3, 2025 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source