Run the time complexity.cpp, which you can find at directory Code/Chapter 1. For different input n, i.e., n = 1, n = 10, n = 20, write down the final value of counter for function1, function2, and function3. Explain the counter result through math calculation.
#include <iostream>
using namespace std;
void function1(int n){
int count = 0;
for(int x = 0; x < 12; x++){
cout<<"counter:"<< count++<<endl;
}
}
void function2(int n){
int count = 0;
for(int x = 0;...