Valid Anagram
Given two strings s and t, return true if t is an anagram of s, and false otherwise.

30:00

Valid Anagram
easy
Topics
Companies

Given two strings s and t, return true if t is an anagram of s, and false otherwise.

Example 1:
Input: {"s":"anagram","t":"nagaram"}
Output: true
Constraints:
  • 1s.length,t.length5×1041 \leq s.\text{length}, t.\text{length} \leq 5 \times 10^4

  • s and t consist of lowercase English letters.

Input
arr ={"s":"anagram","t":"nagaram"}
s
a
n
a
g
r
a
m
t
n
a
g
a
r
a
m
Frequency Count
Variables
No variables to display
DepthFunction Call
1isAnagram(s="anagram", t="nagaram")
0/15