It is possible to recreate the following function using only the <algorithm> library without doing any loop for?
bool find(int x, int y, vector<vector<int>> v)
{
for(int j=v[0].size()-1;j>=0;j--)
if((x==v[0][j])and(y==v[1][j])) return true;
return false;
}
where v={{x values},{y values}} and v[0].size()=v[1].size()