We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6a6d2c + ce40d2a commit 4c4516fCopy full SHA for 4c4516f
examples/practice2_j_segment_tree.rs
@@ -8,7 +8,7 @@ fn main() {
8
9
let n: usize = input.next().unwrap().parse().unwrap();
10
let q: usize = input.next().unwrap().parse().unwrap();
11
- let mut segtree = Segtree::<Max<u32>>::new(n + 1);
+ let mut segtree = Segtree::<Max<i32>>::new(n + 1);
12
for i in 1..=n {
13
segtree.set(i, input.next().unwrap().parse().unwrap());
14
}
0 commit comments