Competitive-Coding-Section
Competitive-Coding-Section copied to clipboard
Create Z-Function
What is Z algorithm used for?
Z algorithm is a linear time string matching algorithm which runs in complexity. It is used to find all occurrence of a pattern in a string , which is common string searching problem.