class Solution {
public boolean canBeEqual(int[] target
, int[] arr
) {
Arrays
.sort(target
);
Arrays
.sort(arr
);
for(int i
= 0; i
< arr
.length
; i
++) {
if(arr
[i
] != target
[i
])
return false;
}
return true;
}
}
转载请注明原文地址: https://lol.8miu.com/read-2004.html