id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

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)

public boolean isAnagram(String s, String t){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy