Builds a finite-state machine from a set of patterns to simultaneously search all patterns in O(n + m) time.
Explain code with DocComment! Try out your own code!