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