We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71fa2f6 commit 2b1100eCopy full SHA for 2b1100e
examples/strings/manacher.rs
@@ -11,7 +11,7 @@ fn main() {
11
let man = manacher(&s.chars().collect::<Vec<_>>())
12
.iter()
13
.enumerate()
14
- .map(|(i, &x)| i - 2 * x + 1)
+ .map(|(i, &x)| i + 1 - 2 * x)
15
.collect::<Vec<_>>();
16
17
println!(
0 commit comments