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

 

orion.a.smith@gmail.com apcsa-encryption > apcsaIsAnagram
prev  |  next  |  chance

Given two input Strings a and b, determine if a is an anagram of b (meaning the letters in a are all used in b, the same number of times). Preconditions: a and b will both hold only lowercase letters, though their lengths may differ.


apcsaIsAnagram("cars", "scar") → true
apcsaIsAnagram("cards", "scar") → false
apcsaIsAnagram("fish", "wish") → false

...Save, Compile, Run (ctrl-enter)

public boolean apcsaIsAnagram(String a, String b) { }

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: 310

Copyright Nick Parlante 2017 - privacy