हिंदी

When there is a nested loop and also a single loop, the time complexity will be:

Advertisements
Advertisements

प्रश्न

When there is a nested loop and also a single loop, the time complexity will be:

विकल्प

  • 1

  • N

  • N2

  • None of these

MCQ
Advertisements

उत्तर

N

Explanation:

The time complexity is only assessed using the nested loop when there is just one loop present.

shaalaa.com
Time Complexity of Algorithms in Python
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×