MCPcopy Create free account
hub / github.com/BeeBombshell/Python-DSA / recursiveSum

Function recursiveSum

Recursion/recursive_sum.py:1–4  ·  view source on GitHub ↗
(l)

Source from the content-addressed store, hash-verified

1def recursiveSum(l):
2 if len(l) == 1:
3 return l[0]
4 return l[0] + recursiveSum(l[1:])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected