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

Function five_pence

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

Source from the content-addressed store, hash-verified

22
23
24def five_pence(x: int) -> int:
25 return 0 if x < 0 else five_pence(x - 5) + two_pence(x)
26
27
28def ten_pence(x: int) -> int:

Callers 1

ten_penceFunction · 0.85

Calls 1

two_penceFunction · 0.85

Tested by

no test coverage detected