//题目:74. 搜索二维矩阵
auto row=upper_bound(matrix.begin(),matrix.end(),target,
[](const int b,const vector<int>&a,)
//一定是先int 再数组,二者顺序不能颠倒
//b就是target,a就是matrix的各个元素
{
return a[0]>b;
}
);
//题目:74. 搜索二维矩阵
auto row=upper_bound(matrix.begin(),matrix.end(),target,
[](const int b,const vector<int>&a,)
//一定是先int 再数组,二者顺序不能颠倒
//b就是target,a就是matrix的各个元素
{
return a[0]>b;
}
);