Skip to content

Commit 1186149

Browse files
committed
fix: cpp code
1 parent c74f538 commit 1186149

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

solution/2000-2099/2031.Count Subarrays With More Ones Than Zeros/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ private:
165165
vector<int> c;
166166

167167
public:
168-
BinaryIndexedTree(int n) : n(n), c(n + 1, 0) {}
168+
BinaryIndexedTree(int n)
169+
: n(n)
170+
, c(n + 1, 0) {}
169171

170172
void update(int x, int v) {
171173
for (; x <= n; x += x & -x) {

solution/2000-2099/2031.Count Subarrays With More Ones Than Zeros/README_EN.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ private:
158158
vector<int> c;
159159

160160
public:
161-
BinaryIndexedTree(int n) : n(n), c(n + 1, 0) {}
161+
BinaryIndexedTree(int n)
162+
: n(n)
163+
, c(n + 1, 0) {}
162164

163165
void update(int x, int v) {
164166
for (; x <= n; x += x & -x) {

solution/2000-2099/2031.Count Subarrays With More Ones Than Zeros/Solution.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ class BinaryIndexedTree {
44
vector<int> c;
55

66
public:
7-
BinaryIndexedTree(int n) : n(n), c(n + 1, 0) {}
7+
BinaryIndexedTree(int n)
8+
: n(n)
9+
, c(n + 1, 0) {}
810

911
void update(int x, int v) {
1012
for (; x <= n; x += x & -x) {

0 commit comments

Comments
 (0)