Skip to content

Commit c58fb34

Browse files
yanglbmeidoocs
authored andcommitted
style: format code and docs with prettier
1 parent 7a18d29 commit c58fb34

File tree

1 file changed

+2
-2
lines changed
  • lcof/面试题42. 连续子数组的最大和

1 file changed

+2
-2
lines changed

lcof/面试题42. 连续子数组的最大和/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ class Solution {
196196
func maxSubArray(_ nums: [Int]) -> Int {
197197
var ans = Int.min
198198
var currentSum = 0
199-
199+
200200
for x in nums {
201201
currentSum = max(currentSum, 0) + x
202202
ans = max(ans, currentSum)
203203
}
204-
204+
205205
return ans
206206
}
207207
}

0 commit comments

Comments
 (0)