What is the time complexity of a loop inside a loop, each running n times?
- O(n)
- O(log n)
- O(n²)Answer
- O(n log n)
Source: OTHER HEC NSCT — 4 Apr 2026found on TestPoint
Explanation coming soon.
Source: OTHER HEC NSCT — 4 Apr 2026found on TestPoint
Explanation coming soon.
We link to where we found each question. Explanations on this page are our own.