Valid Anagram
Try to solve the Valid Anagram problem.
We'll cover the following
Statement
Given two strings, str1
and str2
, check whether str2
is an anagram of str1
.
An anagram is a word or phrase created by rearranging the letters of another word or phrase while utilizing each of the original letters exactly once.
Constraints:
-
str1.length
,str2.length
-
str1
andstr2
consist of only lowercase English letters.
Examples
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy