Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ two_pound
Function
two_pound
project_euler/problem_031/sol1.py:44–45 ·
view source on GitHub ↗
(x: int)
Source
from the content-addressed store, hash-verified
42
43
44
def
two_pound(x: int) -> int:
45
return
0
if
x < 0
else
two_pound(x - 200) + one_pound(x)
46
47
48
def
solution(n: int = 200) -> int:
Callers
1
solution
Function · 0.85
Calls
1
one_pound
Function · 0.85
Tested by
no test coverage detected