Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x.
For instance if x=2 then y must be 1+2+3+4=10.
5 years ago
Solved
Count decimal digits of a number
* Given an integer number you have to return the number of its digits.
* For example 248 has 3 digits and 1589 has 4 digits
...
5 years ago
Solved
Step up
For given input array, output a array with all elements step up by two