7 lines C, 0 ms
Just the normal counting method. I chose to support full ASCII instead of just lower case letters because it's less code (I don't want to subtract 'a' all the t
Just the normal counting method. I chose to support full ASCII instead of just lower case letters because it's less code (I don't want to subtract 'a' all the time, might also be faster without doing that).\n\n    bool isAnagram(char* s, char* t) {\n        int ctr[128] = {};\n        while (*s) ++ctr[*s++];\n        while (*t) --ctr[*t++];\n        for (int i=0; i<128; i++)\n            if (ctr[i])\n                return false;\n        return true;\n    }
[]