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 7d3b8c0 commit ad6d8b9Copy full SHA for ad6d8b9
2 files changed
library/data_structures_[l,r)/bit.hpp
@@ -1,10 +1,7 @@
1
#pragma once
2
//! @code
3
//! BIT bit(n);
4
-//! bit.walk([&](int r, int64_t sum) -> bool {
5
-//! // sum = a[0] + a[1] + ... + a[r - 1]
6
-//! });
7
-//! int r = bit.walk2(sum);
+//! int r = bit.walk(sum);
8
//! // Returns min r s.t. sum of [0,r+1) >= sum
9
//! // Returns n if sum of [0,n) < sum
10
//! // Returns -1 if sum <= 0
library/data_structures_[l,r]/bit.hpp
-//! // sum = a[0] + a[1] + ... + a[r]
//! // Returns min r s.t. sum of [0,r] >= sum
//! // Returns n if sum of [0,n-1] < sum
0 commit comments