You are viewing a single comment's thread. Return to all comments →
wow brilliant but shouldn't it be a[p+1]+=sum; since a is 1-indexed array as per the question
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 →
wow brilliant but shouldn't it be a[p+1]+=sum; since a is 1-indexed array as per the question