Prefer this as it Beats 97%
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def minImpossibleOR(self, nums: List[int]) -> int:\n        mask = 0\n        for x in nums: \n            if x & x-1 == 0: mask |= x \n        for i in range(32): \n            if not mask & 1<<i: return 1 << i \n```
['Python', 'Python3']