Skip to content

Commit

Permalink
StairCase Problem Solution added in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
Kav-192 committed Oct 18, 2021
1 parent 2784720 commit d3e70f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 0 additions & 10 deletions StairCase Problem

This file was deleted.

10 changes: 10 additions & 0 deletions StairCase Problem.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class Solution:
def climbStair(mine, n: int) -> int:
one, two = 1,1

for j in range(n-1):
temp = one
one = one+two
two = temp

return one

0 comments on commit d3e70f9

Please sign in to comment.