You are viewing a single comment's thread. Return to all comments →
what is the need of this?? if((q+1)<=N) { a[q+1]=a[q+1]-sum }
instead why cant i do like this for(i=0;i>a>>b>>k; for(j=a;j<=b;j++) { arr[j]=arr[j]+k; }
}
please help in this?? why there is subtraction ??
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
what is the need of this?? if((q+1)<=N) { a[q+1]=a[q+1]-sum }
instead why cant i do like this for(i=0;i>a>>b>>k; for(j=a;j<=b;j++) { arr[j]=arr[j]+k; }
}