Answer:
Hello there, Please follow the step by step explanations for answer.
Explanation:
Hello there, Please follow the step by step explanations for answer.
Ex1 ( A):
it depends on n
=> O(n)
2.)
O(n/2) which is equal to O(n)
3.)O(n^2)
4.)O(2n) ==> O(n)
5.)O(n^3)
Also, see file attachment on this question for more clarity. Thanks and all the best.