Problems
Contests
Account
Problems
> Same Multiset > Editorial
Same Multiset — Solution & Editorial
Back to the Problem
Sort both and compare, or compare frequency maps.
Complexity:
O(N log N)
×
Refer Job