Question: I'm having some issues with an Anagram Checker in C++. When given two strings it should return true if two strings could be anagrams of

I'm having some issues with an Anagram Checker in C++.

  • When given two strings it should return true if two strings could be anagrams of one another or false if not. The two strings are anagrams of one another if they can be rearrange the characters of one string to equal the other. Can be assume all strings are composed of characters A..Z. Must run in O(m+n+x) time, where m and n are lengths of the two strings and x is the number of characters in the character set (26).
  • It start off as bool anagrams(std::string x, std::string y).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!