Kyopro Library
 
読み取り中…
検索中…
一致する文字列を見つけられません
z_algorithm.hpp ファイル

[ソースコード]

関数

template<typename T = string>
vector< int > ZAlgorithm (const T &s)
 Z Algorithm
 

関数詳解

◆ ZAlgorithm()

template<typename T = string>
vector< int > ZAlgorithm ( const T & s)

Z Algorithm

ret[i] = [0, n) と [i, n) の最長共通接頭辞の長さ

z_algorithm.hpp6 行目に定義があります。