TL;DR
- The Problem: CTCI problem 17.17 technical mechanics.
- The Approach: CTCI problem 17.17: search a big string for all occurrences of a set of smaller target strings using Suffix Trie.
- Complexity: Optimal Time and Memory bounds.
This article provides a clear breakdown of CTCI problem 17.17.
1. Context and Problem Statement
CTCI problem 17.17: search a big string for all occurrences of a set of smaller target strings using Suffix Trie.
2. Technical Code & Mechanics
public class MultiSearch {
// Build Suffix Trie from big string T and query each small pattern P in O(P) time
}
3. Key Takeaways and Edge Cases
Always test boundary conditions and invalid input states.
