we're all know that for a code snippet like
for(int i=0;i<n;i++){ //do something}
Has a complexity of O(n) and we can find it:
sum symbol from n=0 to n-1 c1 = c1* ((n-1)*n)/2
What if the code will be :
for(int i=0;i<n;i+=2){ //do something}
I dont only interested in with big o notation but also,exact growth rate function.
Is there anyone to help me ? thanks in advance