You are given two integer arrays of equal length, target and arr. In one operation, you may select any non empty subarray of arr and reverse it in place. You are permitted to perform this operation any number of times.
Return true if arr can be made identical to target, or false otherwise.
Constraints:
target.length arr.length
target.length
target[i]
arr[i]
You are given two integer arrays of equal length, target and arr. In one operation, you may select any non empty subarray of arr and reverse it in place. You are permitted to perform this operation any number of times.
Return true if arr can be made identical to target, or false otherwise.
Constraints:
target.length arr.length
target.length
target[i]
arr[i]