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

Function two_pound

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

Source from the content-addressed store, hash-verified

47
48
49def two_pound(x):
50 return 0 if x < 0 else two_pound(x - 200) + one_pound(x)
51
52
53print(two_pound(200))

Callers 1

sol1.pyFile · 0.85

Calls 1

one_poundFunction · 0.85

Tested by

no test coverage detected