{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
Given two strings s and t , write a function to determine if t is an anagram of s.
\n", "\n", "Example 1:
\n", "\n", "Input: s = \"anagram\", t = \"nagaram\"\n",
"Output: true\n",
"\n",
"\n",
"Example 2:
\n", "\n", "Input: s = \"rat\", t = \"car\"\n",
"Output: false\n",
"\n",
"\n",
"Note:
\n",
"You may assume the string contains only lowercase alphabets.
\n", "Source \n", "
What if the inputs contain unicode characters? How would you adapt your solution to such case?
\n", "\n", "