Skip to content

Commit e384fd1

Browse files
authored
Update SegmentTree.md
1 parent 85ca929 commit e384fd1

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Tutorial/SegmentTree.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
### KGSS - Maximum Sum
44
- **Link:** https://www.spoj.com/problems/KGSS/
55
- **Algorithm:** Segment tree, Pair Segment Tree
6+
- <details><summary>Idea</summary>
7+
Firstly store all value
8+
</details>
69

7-
> Firstly store all value
8-
<details>
9-
<summary>Code</summary>
10-
11-
```c++
10+
- <details><summary>Code</summary>
11+
12+
```c++
1213
#include<bits/stdc++.h>
1314
#define MAX 100007
1415
using namespace std;
@@ -76,6 +77,15 @@ int main() {
7677
}
7778

7879
```
80+
</details>
81+
82+
83+
- example 4
84+
85+
> Firstly store all value
86+
<details>
87+
<summary>Code</summary>
88+
7989
</details>
8090
8191

0 commit comments

Comments
 (0)