Anil Verma's photo
Anil Verma
·Mar 21, 2021·

Subscribe to my newsletter and never miss my upcoming articles

Play this article

One string is an Anagram of another if it uses the same characters in the same quantity. ignore spaces, punctuations While validating both strings for Anagram Problem.


isAnagram(‘rail safety.’, ‘fairy tales’) →true

isAnagram*(‘Rail SafeTy’, ‘fairy tales.’) **→true*

Let’s Solve -

Step0 → create a function, take both strings as args

Step1 → remove spaces/punctuations from both the strings

step 3 → now to validate both strings,

Share this