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
953 stars 293 forks source link

KMP Algorithm for Pattern Searching #839

Open manastole03 opened 2 years ago

manastole03 commented 2 years ago

🚀 Feature

An easy to implement an algorithm (KMP 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

shubhig226 commented 1 year ago

@manastole03 I can do this using java