We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d03074b commit 85a6e90Copy full SHA for 85a6e90
src/fenwicktree.rs
@@ -1,6 +1,7 @@
1
use std::ops::{Bound, RangeBounds};
2
3
// Reference: https://en.wikipedia.org/wiki/Fenwick_tree
4
+#[derive(Clone)]
5
pub struct FenwickTree<T> {
6
n: usize,
7
ary: Vec<T>,
0 commit comments