File tree 3 files changed +9
-3
lines changed
solution/2000-2099/2031.Count Subarrays With More Ones Than Zeros
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,9 @@ private:
165
165
vector<int > c;
166
166
167
167
public:
168
- BinaryIndexedTree(int n) : n(n), c(n + 1, 0) {}
168
+ BinaryIndexedTree(int n)
169
+ : n(n)
170
+ , c(n + 1, 0) {}
169
171
170
172
void update(int x, int v) {
171
173
for (; x <= n; x += x & -x) {
Original file line number Diff line number Diff line change @@ -158,7 +158,9 @@ private:
158
158
vector<int > c;
159
159
160
160
public:
161
- BinaryIndexedTree(int n) : n(n), c(n + 1, 0) {}
161
+ BinaryIndexedTree(int n)
162
+ : n(n)
163
+ , c(n + 1, 0) {}
162
164
163
165
void update(int x, int v) {
164
166
for (; x <= n; x += x & -x) {
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ class BinaryIndexedTree {
4
4
vector<int > c;
5
5
6
6
public:
7
- BinaryIndexedTree (int n) : n(n), c(n + 1 , 0 ) {}
7
+ BinaryIndexedTree (int n)
8
+ : n(n)
9
+ , c(n + 1 , 0 ) {}
8
10
9
11
void update (int x, int v) {
10
12
for (; x <= n; x += x & -x) {
You can’t perform that action at this time.
0 commit comments