Skip to content

Commit 85a6e90

Browse files
authored
Implement Clone for FenwickTree (#165)
1 parent d03074b commit 85a6e90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fenwicktree.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::ops::{Bound, RangeBounds};
22

33
// Reference: https://en.wikipedia.org/wiki/Fenwick_tree
4+
#[derive(Clone)]
45
pub struct FenwickTree<T> {
56
n: usize,
67
ary: Vec<T>,

0 commit comments

Comments
 (0)