How long does it take to run a bath?
Given the *volume flow rate* (volume/time) of a faucet and the *volume* of a bath tub, find the amount of time it takes to fill ...
11年弱 前
解決済み
Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.
11年弱 前
解決済み
Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements.
Example:
x = [1 2 ...
Perfect Square
Find a function that finds the root of a perfect number!
11年弱 前
解決済み
Sum all integers from 1 to 5^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=6
11年弱 前
解決済み
Vector
Create a 1 x 10 vector from 1 to 20 with increments of 2
11年弱 前
解決済み
Create a vector
Create a vector from 0 to n by intervals of 2.
11年弱 前
解決済み
Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n.
Example
x= [ 1 2 3...
Increase monotonically
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
11年弱 前
解決済み
metre to feet converter
The idea is to make a converter, which exchange meters to feets.
We use a factor of 1m = 3.281*1f.
so 3m are equals to 9.843 m...