06. Search Pattern (Rabin-Karp Algorithm)
β GFG solution for Rabin-Karp based substring search. Fast, efficient pattern matching using rolling hash! π
π§© Problem Description
π Examples
Example 1
Input: text = "birthdayboy", pattern = "birth"
Output: [1]Example 2
Input: text = "geeksforgeeks", pattern = "geek"
Output: [1, 9]π Constraints
β
My Approach
Hashing Basics
Algorithm Steps:
π Time and Auxiliary Space Complexity
π§βπ» Code (C++)
π§βπ» Code (Java)
π Code (Python)
π§ Contribution and Support
πVisitor Count
Last updated