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

Function ten_pence

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

Source from the content-addressed store, hash-verified

26
27
28def ten_pence(x: int) -> int:
29 return 0 if x < 0 else ten_pence(x - 10) + five_pence(x)
30
31
32def twenty_pence(x: int) -> int:

Callers 1

twenty_penceFunction · 0.85

Calls 1

five_penceFunction · 0.85

Tested by

no test coverage detected