Valid Anagram
Submit solution
Points:
1
Time limit:
1.0s
Memory limit:
256M
Problem type
Allowed languages
C++, Python
Problem Description
Given two strings s and t, write a function to determine if t is an anagram of s.
Example1
Input:
anagram
nagaram
Output:
true
Example2
Input:
rat
car
Output:
false
Constraints
- 1 <= s.length, t.length <= 5 × 104
- s and t consist of lowercase English letters.
Comments