We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
ya wht if we get sum=d at fisrt position.
like if ex.5,1,3,4,2.hera d=5and m=2;
at the step sum =sum+s[i+j];
here i=0and j=0;
then the counter increases but .its not correct,we should take two
bars to sum d.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Subarray Division
You are viewing a single comment's thread. Return to all comments →
ya wht if we get sum=d at fisrt position. like if ex.5,1,3,4,2.hera d=5and m=2; at the step sum =sum+s[i+j]; here i=0and j=0; then the counter increases but .its not correct,we should take two bars to sum d.