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

Function five_pence

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

Source from the content-addressed store, hash-verified

27
28
29def five_pence(x):
30 return 0 if x < 0 else five_pence(x - 5) + two_pence(x)
31
32
33def ten_pence(x):

Callers 1

ten_penceFunction · 0.85

Calls 1

two_penceFunction · 0.85

Tested by

no test coverage detected