Question DSA-STR-0018
HardHow does the Rabin–Karp algorithm compare a pattern with substrings of the text quickly?
- A.
By comparing every character every time
- B.
Using a suffix tree only
- C.
Sign up free to see the answer and a step-by-step explanation.