Skip to content

Commit fc33cbd

Browse files
authored
Update continuous_subarray_sum.py
1 parent 79d4efb commit fc33cbd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

continuous_subarray_sum.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
# @param {int[]} A an integer array
@@ -18,4 +18,6 @@ def continuousSubarraySum(self, A):
1818
if _sum < 0:
1919
curr_start = i + 1
2020
_sum = 0
21-
return [start, end]
21+
return [start, end]
22+
23+
# medium: http://lintcode.com/zh-cn/problem/continuous-subarray-sum/

0 commit comments

Comments
 (0)