Skip to content

Commit 14a7ee4

Browse files
Update cses-1661.mdx
1 parent 0a41ebd commit 14a7ee4

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

solutions/silver/cses-1661.mdx

+2-11
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ subarray with sum $x$. After every iteration, we just add our new prefix sum to
1919
the map.
2020

2121
## Implementation
22-
**Time Complexity:** $\mathcal{O}(N)$
2322

24-
**Space Complexity:** $\mathcal{O}(N)$
23+
**Time Complexity:** $\mathcal{O}(N)$
2524

2625
<LanguageSection>
27-
2826
<CPPSection>
2927

3028
```cpp
@@ -34,10 +32,6 @@ the map.
3432

3533
using namespace std;
3634

37-
/**
38-
* @author Qi Wang
39-
* (detemplifying courtesy to Kevin Sheng)
40-
*/
4135
int main() {
4236
ios_base::sync_with_stdio(0);
4337
cin.tie(0);
@@ -67,7 +61,6 @@ int main() {
6761
```
6862

6963
</CPPSection>
70-
7164
<JavaSection>
7265

7366
```java
@@ -116,12 +109,10 @@ public class SubarraySumsII {
116109
```
117110

118111
</JavaSection>
119-
120112
<PySection>
121113

122114
```py
123115
def main():
124-
125116
N, X = map(int, input().split())
126117
prefix, res = 0, 0
127118
mp = {0: 1} # mp[0] = 1
@@ -135,6 +126,6 @@ def main():
135126

136127
main()
137128
```
138-
</PySection>
139129

130+
</PySection>
140131
</LanguageSection>

0 commit comments

Comments
 (0)