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