Skip to content

Commit 98fa6c5

Browse files
authored
chore(formatting): apply code formatting for range query dynamic segment tree
1 parent 4926e50 commit 98fa6c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

range_query/range_query_dynamic_segment_tree.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ template <typename T> class SegmentTree {
2828
}
2929
}
3030

31-
public:
31+
public:
3232
SegmentTree(const vector<T> &v) {
3333
low = 0;
3434
high = int(v.size()) - 1;
@@ -67,9 +67,9 @@ template <typename T> class SegmentTree {
6767

6868
inline Node<T> query(int a, int b) {
6969
if (a > high || b < low)
70-
return Node<T>{};
70+
return Node<T>{};
7171
if (a <= low && high <= b)
72-
return data;
72+
return data;
7373
return unite(left->query(a, b), right->query(a, b));
7474
}
7575
};
@@ -78,4 +78,4 @@ template <typename T> using segtree = SegmentTree<T>;
7878
// Usage:
7979
// segtree<int64> st(v);
8080
// st.query(l, r).sum;
81-
// st.modify(idx, value);
81+
// st.modify(idx, value);

0 commit comments

Comments
 (0)