Analyze the time complexity of the following function: def func(n):if n - Study24x7
Social learning Network
2 followers study24x7 28 Jun 2024 12:12 PM study24x7 study24x7

Analyze the time complexity of the following function: def func(n):
if n <= 1:
See more

A

O(n)

B

O(log n)

C

O(n^2)

D

O(n log n)

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles