sorry if this question turns out to be very stupid, but I'm trying to get my head around the whole concept.
Lets suppose we have the following:
for(int i = 0; i < n; i++) {
if ( ... ) { ... }
if ( ... ) { ... }
if ( ... ) { ... }
if ( ... ) { ... }
}
What is its time complexity, and why?
I thought it was O(n ^ O(4) )
?