2019.12.10
作者:互联网
2019.12.10
bool canBeEqual(vector<int>& target, vector<int>& arr) {
if (target.size() != arr.size()) {
return false;
}
sort(target.begin(), target.end());
sort(arr.begin(), arr.end());
return target == arr;
}
标签:sort,10,arr,return,target,2019.12,end 来源: https://blog.csdn.net/swy_swy_swy/article/details/118642808