Arrays & Hashing • Easy
Valid Anagram
Given two strings `s` and `t`, return `true` if `t` is an anagram of `s`, and `false` otherwise.
The Challenge
Given two strings `s` and `t`, return `true` if `t` is an anagram of `s`, and `false` otherwise.
Pro-tip: Count characters in both strings or sort them to compare.
Solution.swift Tests.swift
Output
Ready to run.