There is a code and i'm curious about the algorithmic complexity of this code in the big-o notation.
def listsum(numList):
if len(numList) == 1:
return numList[0]
else:
return numList[0] + listsum(numList[1:])
question from:https://stackoverflow.com/questions/65860962/what-is-complexity-of-my-code-in-big-o-notation