ACTIVITY 1:
def sum(a, b):
return a+b
1. How many times did the operation execute?
Answer: 1
2. What is the final time complexity of the given algorithm?
Answer: O(1)
3. What is the final space complexity of the given algorithm?
Answer: O(1)
1) 1
2) O(1)
3) O(1)
Comments
Leave a comment