Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ five_pence
Function
five_pence
project_euler/problem_31/sol1.py:29–30 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
27
28
29
def
five_pence(x):
30
return
0
if
x < 0
else
five_pence(x - 5) + two_pence(x)
31
32
33
def
ten_pence(x):
Callers
1
ten_pence
Function · 0.85
Calls
1
two_pence
Function · 0.85
Tested by
no test coverage detected