I am just learning the Big O notation and wanted to ask how it works for nested loops.
Is it true that in the case of
for (int i = 0; i < N; i++){
    for (int j = 0; j < N; j++){
       do something;
    }
}
It would be O(N squared), while
for (int i = 0; i < 1000; i++){
    for (int j = 0; j < N; j++){
        do something;
    }
}
It would be O(N) because the first loop has a constant? Or would it still be O(N squared)? Thank you
 
     
     
    