Given two strings s and t, write a function to determine if t is an anagram of s.
s = "anagram", t = "nagaram", return true.
s = "rat", t = "car", return false.
You may assume the string contains only lowercase alphabets.
What if the inputs contain unicode characters? How would you adapt your solution to such case?
Login to see Answer and Coaching Session
More interview questions