tweak: must be same output string (#395)

This commit is contained in:
balbaal
2020-10-05 01:36:34 +08:00
committed by GitHub
parent 962176ad45
commit e156fe36a1

View File

@ -8,7 +8,7 @@ const checkAnagram = (str1, str2) => {
// If both strings have not same lengths then they can not be anagram. // If both strings have not same lengths then they can not be anagram.
if (str1.length !== str2.length) { if (str1.length !== str2.length) {
return 'Not Anagram' return 'Not anagrams'
} }
// Use hashmap to keep count of characters in str1 // Use hashmap to keep count of characters in str1