Java 0ms, 100% faster, memory less 100%
Code\n\nclass Solution {\n    public int[] evenOddBit(int n) {\n        String binary = Integer.toBinaryString(n);\n        int[] result = new int[2];\n        
# Code\n```\nclass Solution {\n    public int[] evenOddBit(int n) {\n        String binary = Integer.toBinaryString(n);\n        int[] result = new int[2];\n        int len = binary.length();\n        for (int i = len - 1; i >= 0; i--) {\n            if (binary.charAt(i) == \'1\') {\n                result[(len - i - 1) & 1]++;\n            }\n        }\n        return result;\n    }\n}\n```
['Java']