• + 1 comment

    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 ??