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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
