A program has two parameters, M and N. at the high level, the code looks like this: for counter in range(M): perform exp
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A program has two parameters, M and N. at the high level, the code looks like this: for counter in range(M): perform exp
A program has two parameters, M and N. at the high level, the code looks like this: for counter in range(M): perform expensive computation1 for counter in range(N): perform expensive computation2 Big-O analysis of this code yields the following time complexity: Cross out cross out O a. O(M) or O(N) O b. O(M*N) Oc O(M+N) O d. if M is bigger than N then O(N) else O(M) Cross out cross out After the following statements, what are the values of both variables? x = 2013 y = x x= 13 CROSS Out CROSS Out CROSS out O a. xis 2013 and y is 12 O b. xis 13 and y is 2013 Ocxis 2013 and y is 2013 O d. x is 13 and y is 13 Cross out
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!