79150472

Date: 2024-11-02 10:46:07
Score: 1.5
Natty:
Report link

Worst Case: O(n^2), when the condition if (woo == 10000) is never satisfied, and the inner loop runs fully for every i.

Best Case: O(n^2), when the condition is met on the first iteration of the inner loop, causing an early exit from the if condition but the for inner for loop will execute for the complete iteration(all values of i).

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pitambri Sareen