1
0
Fork 0

Update string/hash_vec.cc

Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
subcrip 2024-06-10 02:39:23 +08:00
parent 0b92041322
commit 3ffb8794f8
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ struct range_hash {
}
}
/// query hash of subarray [l, r]. Index starts from 1.
/// query hash of subarray [l, r]. Index starts from 0.
pair<MLL<MDL1>, MLL<MDL2>> range_query(size_t l, size_t r) {
return {
(hp[r + 1].first - hp[l].first * power1[r + 1 - l]),