arrow_back Back to Challenges

#242 Valid Anagram

Easy Acceptance 0%
description

Problem Description

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

checklist Constraints

1 <= s.length, t.length <= 5 * 10^4
s and t consist of lowercase English letters.

science Examples

Case #1

In: s = "anagram" t = "nagaram"
Out: true

Case #2

In: s = "rat" t = "car"
Out: false

Mastery Tags

Hash Table Sorting Strings

Hiring Companies

Amazon Bloomberg Google
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude