668
правок
Изменения
→Псевдокод
'''int'''[] buildPrefixFunctionFromZFunction('''int'''[] z)
'''int'''[] p = '''new int'''[z.length]
'''for''' i = 0 2 '''to''' pz.length - 1
'''if''' z[i] > 0
'''for''' j = z[i] - 1 '''downto''' 0