Content deleted Content added
Line 28:
'''1''' '''function''' RabinKarp(''string'' s[1..n], ''string'' sub[1..m])
'''2''' hsub := hash(sub[1..m])
'''3''' hs := hash(s[1..
'''4''' '''for''' i '''from''' 1 '''to''' n
'''5''' '''if''' hs = hsub
|