← Mock Hub|

Fast-Track Technical Screen (30m)

L4
Stage 1 of 3: Stage 1: Approach Alignment
Stage: 00:00 / 4:00Total: 00:00 / 30:00

Valid Anagram

Difficulty: easy · Topic: hashing

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

An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.

isAnagram("anagram", "nagaram") -> true
isAnagram("rat", "car")         -> false
isAnagram("a", "ab")            -> false