You are viewing a single comment's thread. Return to all comments →
Here's my approch
long arrayManipulation(int n, vector> queries) { vector arr(n,0); long a=0,max=0; long value,start,end;
for(int i=0; imax)max=arr[j]; } } return max; }
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 →
Here's my approch
long arrayManipulation(int n, vector> queries) { vector arr(n,0); long a=0,max=0; long value,start,end;
for(int i=0; imax)max=arr[j]; } } return max; }