~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator|
Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...
約5年 前
解決済み
Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*!
And I'm talking about a unicorn with not more than one horn on it!
約5年 前
解決済み
How to subtract?
*± ± ± ± ± ± ± ± ± ± ±*
* Imagine you need to subtract one...
約5年 前
解決済み
Sum of series VI
What is the sum of the following sequence:
Σk⋅k! for k=1...n
for different n?
5年以上 前
解決済み
Sum of series V
What is the sum of the following sequence:
Σk(k+1) for k=1...n
for different n?
5年以上 前
解決済み
Sum of series IV
What is the sum of the following sequence:
Σ(-1)^(k+1) (2k-1)^2 for k=1...n
for different n?
5年以上 前
解決済み
Energy of a photon
*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛*
Given the frequency F of a photon in giga hertz.
Find energy E of this...
Times 10
Try out this test problem first.
Given the variable x as your input, multiply it by ten and put the result in y.
Examples:...
5年以上 前
解決済み
Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.
5年以上 前
解決済み
Relative ratio of "1" in binary number
Input(n) is positive integer number
Output(r) is (number of "1" in binary input) / (number of bits).
Example:
* n=0; r=...
5年以上 前
解決済み
Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...
How many trades represent all the profit?
Given a list of results from trades made:
[1 3 -4 2 -1 2 3]
We can add them up to see this series of trades made a profit ...
5年以上 前
解決済み
Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...
5年以上 前
解決済み
Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as:
k...
5年以上 前
解決済み
Distance Between Points
Being n the number of points (If n = 3 there would be 3 points: A, B and C).
The distance between each pair of points increases...
5年以上 前
解決済み
Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...
5年以上 前
解決済み
Simple Matrix
Make the following matrix without typing it in one by one.
[1 2 3;
2 4 6;
4 8 12]
x=[1 2 3].
5年以上 前
解決済み
Box
Give the volume of a box, x is equal to the body diagonal.
5年以上 前
解決済み
Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row.
Example:
X=[1;2;3...
5年以上 前
解決済み
Problem for beginners
M is a nxm matrix. Swap the fist and the second last column with eachother.
X=[1 2 3;4 5 6;7 8 9]
Y=[2 1 3;5 4 6;8 7 9]