Content covered: 

Guidelines for Asymptotic Analysis

Manu F Gomez @manufg
20 Jan 2017 07:55 am
function(int n){
    if(n == 1) return;
    for(int i = 1; i <= n; i++){
        for(int j = 1; j <= n; j++){
            printf("*");
            break;
        }
    }
}

This is the last question in the quiz. Why is the complexity O(n) and not O(n^2). Can someone explain. Thank You.

Manu F Gomez @manufg
20 Jan 2017 07:59 am

Oh the break statement. Got it guys. Didnt notice it at first.