Return the sequence element II
Given positive integers x and n, return a positive integer, y, which is the nth term in the <https://en.wikipedia.org/wiki/Juggl...
3年以上 前
解決済み
Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.
Chain multiplication - 03
Following up the problem in 55305, you found the minimum number of multiplications needed to multiply a chain of matrices.
In ...
4年弱 前
解決済み
Chain multiplication - 04
Following up on the problem in 55305, you found the optimal way to multiply a chain of matrices.
However, here in this problem,...
4年弱 前
解決済み
Sideways sum
Given natural number calculate its _population count_.
4年弱 前
解決済み
Weighted average
Given two lists of numbers, determine the weighted average as follows
Example
[1 2 3] and [10 15 20]
should result in
33.3...
4年弱 前
解決済み
The Tortoise and the Hare - 01
Suppose in an infinitely long line, the hare is standing in position 0.
From that place, it can jump either in the +ve direct...
4年弱 前
解決済み
Chain multiplication - 02
Following up on the problem in 55295, you found the number of multiplications needed to multiply two matrices.
Now, you are giv...
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1.
Examp...
4年弱 前
解決済み
True engineer
Prove that pi is indeed equal to e.
Return 1 by rounding pi and e to the nearest integer then asserting rounded pi and e are eq...
Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5).
If you multiply these two matrices, the resultant matrix w...
4年弱 前
解決済み
Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...
Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...