Skip to content

Commit

Permalink
Fix type annotations for integer_partition.py TheAlgorithms#4052 (The…
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinmurali-io authored Aug 30, 2021
1 parent 8e5c353 commit 3acca3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dynamic_programming/integer_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"""


def partition(m):
memo = [[0 for _ in range(m)] for _ in range(m + 1)]
def partition(m: int) -> int:
memo: list[list[int]] = [[0 for _ in range(m)] for _ in range(m + 1)]
for i in range(m + 1):
memo[i][0] = 1

Expand Down

0 comments on commit 3acca3d

Please sign in to comment.