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