terminal
Elevo
/
ESC
Login
Initiate Registration
code
Topics
corporate_fare
Companies
history
History
arrow_back
Back to Challenges
#242
Valid Anagram
Easy
Acceptance 0%
Editorial
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
Python 3
expand_more
C
C++ 17
Java
JavaScript
Python 3
C
C++ 17
Java
JavaScript
Python 3
refresh
class Solution: def isAnagram(self, s: str, t: str) -> bool: pass
Login to Compile
Processing
terminal
Debug Output
home
Home
extension
Practice
robot_2
login
Sign In
account_circle
Menu
code_blocks
Coding
psychology
Aptitude
Navigation
close
Login
Registration