OpenGenus/cosmos

Add Z_Algorithm

Open

#493 opened on 2017年10月4日

GitHub で見る
 (5 comments) (1 reaction) (1 assignee)C++ (3,724 forks)batch import
Hacktoberfestadd codenew algorithm

Repository metrics

Stars
 (13,462 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド