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