Skip to content

Commit fa386f2

Browse files
committed
Time: 14 ms (24.92%), Space: 17.6 MB (42.71%) - LeetHub
1 parent 145e140 commit fa386f2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution {
2+
public:
3+
bool canBeEqual(vector<int>& target, vector<int>& arr) {
4+
sort(arr.begin(), arr.end());
5+
sort(target.begin(), target.end());
6+
return arr == target;
7+
}
8+
};

0 commit comments

Comments
 (0)