• + 0 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;