Skip to content

Commit f10193b

Browse files
committed
two integer arrays of equal length target and arr.
1 parent 3f63647 commit f10193b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)