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){ res.push_back(*min_element(width.begin() + c[0], width.begin() + c[1] + 1)); } 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