解決済み


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

5年弱 前

解決済み


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

5年弱 前

解決済み


Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

5年弱 前

解決済み


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

5年弱 前

解決済み


Find max
Find the maximum value of a given vector or matrix.

5年弱 前

解決済み


Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...

5年弱 前

解決済み


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

5年弱 前

解決済み


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

5年弱 前

解決済み


Is my wife right?
Regardless of input, output the string 'yes'.

5年弱 前

解決済み


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

約5年 前

解決済み


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

約5年 前

解決済み


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

約5年 前

解決済み


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

約5年 前

解決済み


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

約5年 前

解決済み


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

約5年 前

解決済み


Add two numbers
Given a and b, return the sum a+b in c.

約5年 前

解決済み


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

約5年 前