| about | help | code help+videos | done | prefs |
isAnagram
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. Use an int[26] to track character counts. The strings will contain only English letters. isAnagram("Elvis", "lives") → true isAnagram("banana", "banan") → false isAnagram("MeaT", "tEAm") → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy