C++ | Very Easy Code | 90% Faster
Please Upvote :)\n\n\nclass Solution {\npublic:\n    bool isAnagram(string s, string t) {\n        if(s.length()!=t.length())\n            return 0;\n        \n
Please Upvote :)\n\n```\nclass Solution {\npublic:\n    bool isAnagram(string s, string t) {\n        if(s.length()!=t.length())\n            return 0;\n        \n        vector<int> a(26,0), b(26,0);\n        for(int i=0;i<s.length();i++)\n        {\n            a[s[i]-\'a\']++;\n            b[t[i]-\'a\']++;\n        }\n        \n        for(int i=0;i<26;i++)\n            if(a[i]!=b[i])\n                return 0;\n        return 1;\n    }\n};\n```
['C', 'C++']