Question:

Let us consider for an Algorithm A, a nested loop and also a single loop is present what would be the time complexity for algorithm A ?

Updated On: Apr 19, 2024
  • 1
  • n
  • n2
  • n3
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The correct option is(C): n2
Was this answer helpful?
0
0

Top Questions on Algorithm design techniques