Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 281 Bytes

20190721-2.md

File metadata and controls

24 lines (22 loc) · 281 Bytes

时间复杂度题解

function recursive(n) {
    if (n <= 0) {
        console.log('finish');
    } else {
        n-=2;
        recursive(n);
        recursive(n);
    }
}
function foo(n){
    var i = 1;
    while(i <= n){
        i = i * 2;
    }
}