Valid Anagram
Given two strings s and t Return true if t is an anagram of s, false otherwise An anagram uses the same characters with the same frequencies Example: s = "anagram", t = "nagaram" => true Example: s = "rat", t = "car" => false
Are these two strings made of the exact same letters? It's a simple question that tests whether you can count efficiently. Most candidates reach for sorting, but interviewers are watching to see if you think about character frequency instead. Nail this pattern and you'll breeze through the harder string-matching problems.

Meet Coco
Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Sign in free to type with Coco, up to a daily limit, and to talk with her for one hour. After that, talking comes with the $79 pack. Anyone can open the editor and run their code.
Each locked part opens in the editor once the part before it passes.
Prep guides that list this problem
Our company tags come from public interview write-ups. None of these is a confirmed question.