1
Anagram Check
Problem Solving
Definition:
Two strings are anagrams if they have the same characters (same count) but in a different order.
Example: listen / silent
string a = "listen", b = "silent";
sort(a.begin(), a.end());
sort(b.begin(), b.end());
cout << (a == b ? "Anagram" : "Not Anagram");
Note: sort() needs #include <algorithm>.