Jave simple and efficient solution
public boolean isAnagram(String s, String t) {\n            if(s == null || t == null || s.length() != t.length()) return false;\n            int[] count = new 
    public boolean isAnagram(String s, String t) {\n            if(s == null || t == null || s.length() != t.length()) return false;\n            int[] count = new int[26];\n            int len = t.length();\n            for(int i = 0; i < len; i++) {\n                count[t.charAt(i) - 'a']++;\n            }\n            for(int i = 0; i < len; i++) {\n                char c = s.charAt(i);\n                if(count[c - 'a'] > 0) {\n                    count[c - 'a']--;\n                } else {\n                    return false;\n                }\n            }\n            return true;\n        }
[]