Average valid values of arrays
Given a 1D array (column or row vector), compute the average of valid values. Valid values are defined via two thresholds: minVa...
4年弱 前
解決済み
Dice roll - opposite faces
For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...
Calculate the volume of a cone
Calculate the volume of a cone given an array containing one column of radii and one column of the height of the cone.
* Reme...
4年弱 前
解決済み
Component area
Find the area of the component below, all measurements are in mm
<<https://image.ibb.co/hocruF/Component.png>>
4年弱 前
解決済み
Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...
4年弱 前
解決済み
Sum of logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...
4年弱 前
解決済み
Perfect Square
Determine if the input is a perfect square (square of an integer) or not.
Example -
If input is 25(==5^2), return 1.
If input...
Elastic Collision 001: 1-D
Elastic Collision of two particles.
<http://en.wikipedia.org/wiki/Elastic_collision wiki Elastic Collision>
Solve Conservat...