// Source : https://leetcode-cn.com/problems/valid-anagram/
// Date : 2021-11-5
简单题我重拳出击
class Solution {
public:
bool isAnagram(string s, string t) {
//排序之后比较排序后的序列,如果两者一模一样,则符合题意
sort(s.begin(), s.end());
sort(t.begin(), t.end());
return s == t;
}
};```



