Types
RollingHash[T] = object s: T hash_accum, base_pow, base_inv_pow: seq[uint]
- Source Edit
Procs
proc build(rh: var RollingHash; maxa: uint = 1000000000; seed: int = -1)
- Source Edit
proc initRollingHash[T](s: T): RollingHash[T]
- Source Edit
proc query(rh: RollingHash; rng: HSlice[int, int]): uint
- Source Edit