You are viewing a single comment's thread. Return to all comments →
Cpp
vector<int> serviceLane(int n, vector<vector<int>> cases, vector<int> width) { vector<int> res; for(auto c: cases){ auto itw1 = next(width.begin(), c[0]); auto itw2 = next(width.begin(), c[1] + 1); res.push_back(*min_element(itw1, itw2)); } return res; }
Seems like cookies are disabled on this browser, please enable them to open this website
Service Lane
You are viewing a single comment's thread. Return to all comments →
Cpp