Masala #93BPSAET9F
Powers of 2
Complete the function that takes a non-negative integer n
as input, and returns a list of all the powers of 2
with the exponent ranging from 0
to n
( inclusive ).
Kiruvchi ma'lumotlar:
Chiquvchi ma'lumotlar:
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
0 |
1 |
2 |
2 |
1 2 4 |