How do I analyze a for loop that looks like
for (j = 0; j < 2*n; j += 2)
I know that if it was just j++ it would loop 2n times but the += is throwing me off. This loop is nesting in a normal loop of
for(i=0; i < n; i++)
I know this will make it n^2 but I don't know how the j += 2 affects the time.
Thanks for the help,
PeskyToaster