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