Question: The time complexity of the following function is x = 0 for J = 1 to n X++ for K = J to 3*n
The time complexity of the following function is x = 0 for J = 1 to n X++ for K = J to 3*n X = x + K Select one: a. O(n?) b. O(n log n) c. O(2") d. O(n)
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
options C is correct complex... View full answer
Get step-by-step solutions from verified subject matter experts
