HackerRank Problem Solution 4 - Anagrams

preview_player
Показать описание
#hackerrank #hackerranksolutions #java #hashmap #anagrams #anagram
#hackerrank
#hackerrank java
#hackerrank java problem solving
#hackerrank java basic certification answers

Two strings, and , are called anagrams if they contain all the same characters in the same frequencies. For this challenge, the test is not case-sensitive. For example, the anagrams of CAT are CAT, ACT, tac, TCA, aTC, and CtA.

Function Description

Complete the isAnagram function in the editor.

isAnagram has the following parameters:

string a: the first string
string b: the second string
Returns

boolean: If and are case-insensitive anagrams, return true. Otherwise, return false.
Рекомендации по теме