Question

What is the time complexity of the following pseudocode? for i = 1 to n:   for j = 1 to i:     for k = 1 to j:       print(i, j,
k)

A O(n³)
B O(2ⁿ)
C O(n² log n)
D O(n²)
E O(n log n)
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)