AI Features

Complexity Analysis

In this lesson, we'll see the run-time analysis for Sieve.

We'll cover the following...

The outer loop

for (int i = 2; i * i <= N; i++)

Runs for N\sqrt{N} ...

Ask