摘要: 242. 有效的字母异位词 ```cpp class Solution { public: bool isAnagram(string s, string t) { if(s.size()!=t.size()) return false; int ans[26]={0}; for(auto& ch: 阅读全文
posted @ 2023-05-30 11:23 冰糖人 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include <iostream> #include <cstring> using namespace std; const int MAX_N=256; bool judge(char *a, int low, int high); int main() { char s[MA 阅读全文
posted @ 2023-02-23 10:33 冰糖人 阅读(42) 评论(0) 推荐(0) 编辑