Question:

A loop within a loop (nested loop) have time complexity ______.

Updated On: Sep 23, 2024
  • n
  • n2
  • n+1
  • n3
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

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