Skip to content

Commit c9fca52

Browse files
committed
Time: 80 ms (23.31%), Space: 16.8 MB (22.18%) - LeetHub
1 parent f39eb96 commit c9fca52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class Solution:
22
def canBeEqual(self, target: List[int], arr: List[int]) -> bool:
3-
return sorted(target)==sorted(arr)
3+
return Counter(target)==Counter(arr)

0 commit comments

Comments
 (0)