Short Problem Definition:
Given an array of integers, find the sum of its elements.
time complexity is O(N)
space complexity is O(1)
Just sum it up.
def simpleArraySum(ar): return sum(ar)
If you enjoyed this post, then make sure you subscribe to my Newsletter and/or Feed.