Advertisements
Advertisements
प्रश्न
Any algorithm that has a loop (usually 1 to n) will have the time complexity of:
विकल्प
1
N
N2
None of these
MCQ
Advertisements
उत्तर
N
Explanation:
Any algorithm with a loop (often 1 to n) will take N times as long to complete. This is as a result of the loop running N times.
shaalaa.com
Time Complexity of Algorithms in Python
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
