Solution int setBit(int num, int bit) { return num | (1 << bit); } Time/Space Complexity Time Complexity: O(1) Space Complexity O(1)