β
Correct Answer: (B)
o(n)
Explanation: to calculate the nth term, the for loop runs (n – 1) times and each time a for loop is run, it takes a constant time.
Explanation by: Mr. Dubey
to calculate the nth term, the for loop runs (n – 1) times and each time a for loop is run, it takes a constant time.
Discussion
Question Analytics
419
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
81%
Success Rate