MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / one_pound

Function one_pound

project_euler/problem_31/sol1.py:45–46  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

43
44
45def one_pound(x):
46 return 0 if x < 0 else one_pound(x - 100) + fifty_pence(x)
47
48
49def two_pound(x):

Callers 1

two_poundFunction · 0.85

Calls 1

fifty_penceFunction · 0.85

Tested by

no test coverage detected