Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example:
Input: n = 7
2^n = ...
10 years ago
Solved
Odd row
Create a row 'y' with odd numbers where the range of numbers is given by 'x' and the space between them by 'm'. The first number...
10 years ago
Solved
Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...
10 years ago
Solved
What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...