We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f10193b commit 65df0c5Copy full SHA for 65df0c5
1001-1500/Make Two Arrays Equal by Reversing Subarrays.py
@@ -1,4 +1,3 @@
1
-
2
class Solution:
3
- def canBeEqual(self, target: List[int], arr: List[int]) -> bool:
+ def canBeEqual(self, target: list[int], arr: list[int]) -> bool:
4
return sorted(target) == sorted(arr)
0 commit comments