File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11{
2- "examples/point_add_range_sum.rs" : " 2024-05-16 05:51:15 -0600" ,
3- "examples/shortest_path.rs" : " 2024-05-16 05:51:15 -0600" ,
4- "examples/staticrmq.rs" : " 2024-05-16 05:51:15 -0600" ,
5- "examples/unionfind.rs" : " 2024-05-16 05:51:15 -0600"
2+ "examples/point_add_range_sum.rs" : " 2024-05-16 06:02:48 -0600" ,
3+ "examples/shortest_path.rs" : " 2024-05-16 06:02:48 -0600" ,
4+ "examples/staticrmq.rs" : " 2024-05-16 06:02:48 -0600" ,
5+ "examples/unionfind.rs" : " 2024-05-16 06:02:48 -0600"
66}
Original file line number Diff line number Diff line change @@ -16,10 +16,7 @@ impl<T: Clone + Default + std::ops::AddAssign<T>> Fenwick<T> {
1616 sum
1717 }
1818 /// performs data[idx] += val;
19- pub fn add < U : Clone > ( & mut self , mut idx : usize , val : U )
20- where
21- T : std:: ops:: AddAssign < U > ,
22- {
19+ pub fn add ( & mut self , mut idx : usize , val : T ) {
2320 while idx < self . ary . len ( ) {
2421 self . ary [ idx] += val. clone ( ) ;
2522 idx |= idx + 1 ;
You can’t perform that action at this time.
0 commit comments