diff options
| author | n1c00o <git.n1c00o@gmail.com> | 2021-10-12 20:30:54 +0200 |
|---|---|---|
| committer | n1c00o <git.n1c00o@gmail.com> | 2021-10-12 20:30:54 +0200 |
| commit | f551a3af808e5b89b8744b8b3d77dee08ae63ce9 (patch) | |
| tree | 1e0fea2a6fbb800d691826b2128ea9f83e9ea383 /the-grandest-staircase-of-them-all/solution.py | |
| parent | 412d9f7739404b734e03c090b07e4ddfd8a1ee3f (diff) | |
Move my solution into a specific folder
Diffstat (limited to 'the-grandest-staircase-of-them-all/solution.py')
| -rw-r--r-- | the-grandest-staircase-of-them-all/solution.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/the-grandest-staircase-of-them-all/solution.py b/the-grandest-staircase-of-them-all/solution.py index d4e5499..744b41d 100644 --- a/the-grandest-staircase-of-them-all/solution.py +++ b/the-grandest-staircase-of-them-all/solution.py @@ -1,7 +1,2 @@ def solution(n): - t = [1] + [0]*n - for s in range(1, n + 1): - for h in range(n, s - 1, -1): - t[h] += t[h - s] - - return t[-1] - 1 + # Your code here |
