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

Function two_pence

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

Source from the content-addressed store, hash-verified

23
24
25def two_pence(x):
26 return 0 if x < 0 else two_pence(x - 2) + one_pence()
27
28
29def five_pence(x):

Callers 1

five_penceFunction · 0.85

Calls 1

one_penceFunction · 0.85

Tested by

no test coverage detected