6 questions. Covers Rolling hash.
Questions 1 to 5 of 6
PrefixHash
get(start, len)
len
findAll
text.compare
std::string::compare
get
upper + mod_ - removed
mod_
.at()
cpp #include <cstdint> #include <iostream> int main() { const uint64_t mod = 11; uint64_t upper = 1068 % mod; uint64_t removed = 97 % mod * 10 % mod; std::cout << (upper + mod - removed) % mod << "\n"; }
5 question(s) left on this page.