Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf07c41

Browse files
authored
Added Spaces
1 parent e1930f9 commit cf07c41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/1423-maximum-points-you-can-obtain-from-cards.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ def maxScore(self, cardPoints: List[int], k: int) -> int:
44

55
score = maxScore = sum(cardPoints[:k])
66

7-
for i in range(1, k+1):
8-
score += cardPoints[-i] - cardPoints[k-i]
7+
for i in range(1, k + 1):
8+
score += cardPoints[-i] - cardPoints[k - i]
99
maxScore = max(maxScore, score)
1010

11-
return maxScore
11+
return maxScore

0 commit comments

Comments
 (0)