Leetcode 0242. Valid Anagram
Posted on Mon 16 December 2024 in Leetcode • Tagged with string
Question Link : https://leetcode.com/problems/valid-anagram/
Difficulty: Easy
Premium: False
Question
Given two strings s and t, return true if t is an anagram of s, and false otherwise. Example 1:
Input: s = "anagram", t = "nagaram" Output: true
Example 2:
Input: s = "rat", t = "car" Output: false
Constraints:
1 …
Continue reading