Daily Challenge

One hand-picked problem each day — build a streak by solving it.

Thursday, August 27, 2026

Valid Anagram

EasyHashing

Given two strings `s` and `t`, return true if `t` is an anagram of `s` (same letters, same counts).

Input: s = "anagram", t = "nagaram"
Output: true
Input: s = "rat", t = "car"
Output: false
Constraints
  • Lowercase English letters
Your solution (scratchpad)