String/z_algorithm library

Functions

zAlgorithm(String s) List<int>
Computes the Z-array for pattern matching in string s (Z-Algorithm).