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

Function two_pound

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

Source from the content-addressed store, hash-verified

42
43
44def two_pound(x: int) -> int:
45 return 0 if x < 0 else two_pound(x - 200) + one_pound(x)
46
47
48def solution(n: int = 200) -> int:

Callers 1

solutionFunction · 0.85

Calls 1

one_poundFunction · 0.85

Tested by

no test coverage detected