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

Function one_pound

project_euler/problem_031/sol1.py:40–41  ·  view source on GitHub ↗
(x: int)

Source from the content-addressed store, hash-verified

38
39
40def one_pound(x: int) -> int:
41 return 0 if x < 0 else one_pound(x - 100) + fifty_pence(x)
42
43
44def two_pound(x: int) -> int:

Callers 1

two_poundFunction · 0.85

Calls 1

fifty_penceFunction · 0.85

Tested by

no test coverage detected