HTMLify

LeetCode - Make Two Arrays Equal by Reversing Subarrays - Python
Views: 27 | Author: abh
class Solution:
    def canBeEqual(self, target: List[int], arr: List[int]) -> bool:
        return sorted(target) == sorted(arr)

Comments