sukritishah15 / DS-Algo-Point

This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
MIT License
952 stars 292 forks source link

Rabin-Karp Algorithm for Pattern Searching #838

Open manastole03 opened 2 years ago

manastole03 commented 2 years ago

🚀 Feature

An easy to implement an algorithm that finds the pattern in a given text.

Have you read the Contribution Guidelines?

Yes

Pitch

Given a text text[] and a pattern[], write a function search(char pattern[], char text[]) that prints all occurrences of pattern[] in text[]. Example : text[] = "My Name is Manas" pat[] = "Manas" Solution : Pattern found at index 12

manastole03 commented 2 years ago

Please assign this issue to me :) 👍 @PaulEvans8669 @cr33dx @Corentin-Leffy @beardedasianlad