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.
1 parent 355435a commit e33724eCopy full SHA for e33724e
cp-algo/structures/fenwick.hpp
@@ -41,7 +41,7 @@ namespace cp_algo::structures {
41
T range_sum(size_t l, size_t r) const {
42
return prefix_sum(r) - prefix_sum(l);
43
}
44
- // First r s.t. prefix_sum(r) > k
+ // First r s.t. prefix_sum(r) >= k
45
// Assumes data[x] >= 0 for all x
46
auto prefix_lower_bound(T k) const {
47
int x = 0;
0 commit comments