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