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