Simple Python Code || O(N LogN) Complexity
\nclass Solution:\n    def minImpossibleOR(self, nums: List[int]) -> int:\n        minn = min(nums);\n        if minn != 1:\n            return 1;\n        else
```\nclass Solution:\n    def minImpossibleOR(self, nums: List[int]) -> int:\n        minn = min(nums);\n        if minn != 1:\n            return 1;\n        else:\n            d = {i : 1 for i in nums}\n            i = 2;\n            while i in d:\n                i = i*2;\n            return i\n```
['Python']