2019.12.15 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; }