What is the time complexity of two nested loops, each running n times?
Show answerHide answer
Correct answer: (C) O(n^2)
Explanation
n × n iterations.
Correct answer: (C) O(n^2)
Explanation
n × n iterations.
This is question 124 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.