Skip to content

Commit

Permalink
Merge pull request neetcode-gh#520 from MeViMo/patch-2
Browse files Browse the repository at this point in the history
Update 746-Min-Cost-Climbing-Stairs.py
  • Loading branch information
Ahmad-A0 authored Aug 8, 2022
2 parents 1c4186b + 6676488 commit af60103
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/746-Min-Cost-Climbing-Stairs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
class Solution:
def minCostClimbingStairs(self, cost: List[int]) -> int:
cost.append(0)

for i in range(len(cost) - 3, -1, -1):
cost[i] += min(cost[i + 1], cost[i + 2])

Expand Down

0 comments on commit af60103

Please sign in to comment.