My goal is to get nearest bigger number than an input integer that is two to the n.
For example, what should nearestbigger
be?
integerinput = [2016, 300, 9001]
for x in integerinput:
print(nearestbigger(x))
Expected Output
2048
512
16384
My goal is to get nearest bigger number than an input integer that is two to the n.
For example, what should nearestbigger
be?
integerinput = [2016, 300, 9001]
for x in integerinput:
print(nearestbigger(x))
Expected Output
2048
512
16384