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