bumpsoo 2024-08-05 22:15:38 +09:00
parent 39eb343d8c
commit 1016645340

View file

@ -0,0 +1,8 @@
# https://leetcode.com/problems/make-two-arrays-equal-by-reversing-subarrays
from typing import List
class Solution:
def canBeEqual(self, target: List[int], arr: List[int]) -> bool:
target.sort()
arr.sort()
return target == arr