Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example:
Input: n = 7 2^n = 128 Output: b = 1 + 2 + 8 = 11
794 Solvers
Back to basics 22 - Rotate a matrix
682 Solvers
325 Solvers
Find the position of first minimum value in an integer array with numbers
96 Solvers
110 Solvers