Practice · 3 of 5
Anagram Verdict
CHALLENGE
Difficulty: beginner+25 XP
**Description:** Two lines. Print YES if the second is an anagram of the first
(same characters with the same multiplicities), otherwise NO.
**Input:** Two lines: s and t (1 <= |s|, |t| <= 10^6, lowercase letters).
**Output:** YES or NO.
**Example:** listen / silent -> YES; listen / tense -> NO.
Press Submit to check your solution.
Back to lesson: Practice: String Problem Set