What is the time complexity of this function?
void printValues(int N) {
int totalIterations = (N >200) ? 200: N;
for(int i = 0; i < totalIterations; i++)
cout << i << endl;
}
What is the time complexity of this function?
void printValues(int N) {
for(int i = 0; i < N; i=*2)
cout << i << endl;
}