Q4. STL+NumberTheoryQ4
Which code will take more time :
Code A:
void check1(vector<int> v)
{ for(int i=0;i<v.size();i++)
cout<<v[i];
}
Code B:
void check2(vector<int> & v)
{ for(int i=0;i<v.size();i++)
cout<<v[i];
}
The answer to this is : A has more time complexity than B ,Explain why call by reference is faster than call by value
