mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-17 14:58:10 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
52f09dffe6
commit
1264c554b6
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
def house_robber(houses: list[int]) -> int:
|
||||
"""
|
||||
Solves the House Robber problem using memoization (caching).
|
||||
|
@ -48,5 +46,3 @@ def house_robber(houses: list[int]) -> int:
|
|||
return memo[n]
|
||||
|
||||
return dp(0)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user