OpenGenus/cosmos

Add Z_Algorithm

Open

#493 aperta il 4 ott 2017

Vedi su GitHub
 (5 commenti) (1 reazione) (1 assegnatario)C++ (3724 fork)batch import
Hacktoberfestadd codenew algorithm

Metriche repository

Star
 (13.462 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor