Question 13 Marks
Write a program using recursion function to accept the list from the user and print sum of all the elements in the list.
4 questions · timed · auto-graded
Write the programming code differently, calculate its time complexity.
Calculate the processing time:
Total: 7n/2+1 operations => 7n/2+1 units of processing time
Therefore, the time complexity is of the order O(n).