what is the complexity of this program?
for ( int i=1; i <n; i+=4}
for ( int j=1; j<n; j++)
sum++;
O of the 1st line is O(n) O of the second line is O(n)
what is the complexity of this program?
for ( int i=1; i <n; i+=4}
for ( int j=1; j<n; j++)
sum++;
O of the 1st line is O(n) O of the second line is O(n)