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 = ...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
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...