Anagram Checks
Given two strings s0
and s1
, return whether they are anagrams of each other.
Constraints
n ≤ 100,000
wheren
is the length ofs0
m ≤ 100,000
wherem
is the length ofs1
https://binarysearch.com/problems/Anagram-Checks
Examples
Example 1
Input
- s0 =
listen
- s1 =
silent
Output
- answer =
True
Example 2
Input
- s0 =
bedroom
- s1 =
bathroom
Output
- answer =
False
Leave a comment