O(1) popcount
Complexity\n- Time complexity:\nO(1)\n\n- Space complexity:\nO(1)\n\n# Code\n\nconst popcount = (v: number) => {\n    let c = v - ((v >>> 1) & 0x55555555)\n    
# Complexity\n- Time complexity:\n$$O(1)$$\n\n- Space complexity:\n$$O(1)$$\n\n# Code\n```\nconst popcount = (v: number) => {\n    let c = v - ((v >>> 1) & 0x55555555)\n    c = ((c >>> 2) & 0x33333333) + (c & 0x33333333)\n    c = ((c >>> 4) + c) & 0x0f0f0f0f\n    c = ((c >>> 8) + c) & 0x00ff00ff\n    c = ((c >>> 16) + c) & 0x0000ffff\n    return c\n}\n\nconst evenOddBit = (v: number) => [popcount(v & 0x55555555), popcount(v & 0x2aaaaaaa)]\n\n```
['Bit Manipulation', 'TypeScript', 'JavaScript']