Computer Science, asked by steve316, 11 months ago

write a javascript code for checking a string whether it's anagram​ or not ?

Answers

Answered by Anonymous
9

Answer:

Method 2 (Count characters) Create count arrays of size 256 for both strings. Initialize all values in count arrays as 0. Iterate through every character of both strings and increment the count of character in the corresponding count arrays. Compare count arrays. If both count arrays are same, then return true

Similar questions