Python -Selen -Klasse
def doubnum(arr, num):
pool = set(arr)
while num in pool:
num *= 2
return num
Cooperative Caiman
def doubnum(arr, num):
pool = set(arr)
while num in pool:
num *= 2
return num