Valid Anagram

Easy
StringHash TableSortingAmazonGoogle
Given two lowercase strings, print whether the second string is an anagram of the first. Input format: - First line: s - Second line: t Print `true` or `false`.

Constraints

0 <= s.length, t.length <= 2 * 10^5
Strings contain lowercase English letters.

Sample tests

Sample 1

Sample 2

Sign in to submit