Skip to content

Commit

Permalink
Failing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
coado authored May 18, 2024
1 parent 44cf4c5 commit 095caba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_structures/fenwick_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl FenwickTree2D {
}

pub fn range_sum(&self, y1: i32, x1: i32, y2: i32, x2: i32) -> i32 {
self.sum(y2, x2) - self.sum(y1 - 1, x2) - self.sum(y2, x1 - 1) + self.sum(y1 - 1, x1 - 1)
self.sum(y2, x2) - self.sum(y1 - 1, x2) - self.sum(y2, x1 - 1)
}

pub fn add(&mut self, x: usize, y: usize, val: i32) {
Expand Down

0 comments on commit 095caba

Please sign in to comment.