You are viewing a single comment's thread. Return to all comments →
just wow, brilliant solution, here is C++14 same code:
vector arr;long max=numeric_limits::min();int s=queries.size();long j=0; for (unsigned int i=0;i<=n;i++) arr.push_back(0);
for (unsigned int i=0;imax) max=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 →
just wow, brilliant solution, here is C++14 same code:
vector arr;long max=numeric_limits::min();int s=queries.size();long j=0; for (unsigned int i=0;i<=n;i++) arr.push_back(0);
for (unsigned int i=0;imax) max=j; }
return max;