Skip to content
ı
Workspace
Visualizer
Search anything…
⌘ K
Desk
Path
Problems
Review
More
Library
/
Rabin-Karp String Match
strings
Best
O(n + m)
Avg
O(n + m)
Worst
O(n · m)
Space
O(1)
Preparing Rabin-Karp String Match...
Uses rolling hashes to quickly filter out positions that cannot match the search pattern.