OpenGenus/cosmos

Add Z_Algorithm

Open

#493 geöffnet am 4. Okt. 2017

Auf GitHub ansehen
 (5 Kommentare) (1 Reaktion) (1 zugewiesene Person)C++ (3.724 Forks)batch import
Hacktoberfestadd codenew algorithm

Repository-Metriken

Stars
 (13.462 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

This algorithm finds all occurrences of a pattern in a text in linear time. Let length of text be n and of pattern be m, then total time taken is O(m + n) with linear space complexity @AdiChat adding in python

Contributor Guide