Gelöst


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

11 Monate vor

Gelöst


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

11 Monate vor

Gelöst


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

11 Monate vor

Gelöst


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: Input...

11 Monate vor

Gelöst


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

11 Monate vor

Gelöst


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

11 Monate vor

Gelöst


Converts numbers into characters
Converts numbers into characters

11 Monate vor

Gelöst


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

11 Monate vor

Gelöst


Draw a '0' in a one matrix!

11 Monate vor

Gelöst


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

11 Monate vor

Gelöst


the average value of the elements
Calculate the average value of the elements in the array

11 Monate vor

Gelöst


Double all elements in the array
Duplicate all elements in the array

11 Monate vor

Gelöst


Find the max element of the array
Find the max element of the array

11 Monate vor

Gelöst


to the 2 all elements
to the 2 all elements

11 Monate vor

Gelöst


calculate the length of matrix
input 1 array, calculate the length

11 Monate vor

Gelöst


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

11 Monate vor

Gelöst


Can the given sides form a triangle?
Can the three given sides form a triangle?

11 Monate vor