singularity

2154. Keep Multiplying Found Values By Two

O(n)

class Solution(object):
    def findFinalValue(self, nums, original):
        """
        :type nums: List[int]
        :type original: int
        :rtype: int
        """
        F  = set(nums)
        
        while original in F:
            original *= 2
        return original