Risolto


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

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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;...

8 mesi fa

Risolto


Converts numbers into characters
Converts numbers into characters

8 mesi fa

Risolto


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

8 mesi fa

Risolto


Draw a '0' in a one matrix!

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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

8 mesi fa

Risolto


to the 2 all elements
to the 2 all elements

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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

8 mesi fa

Risolto


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

8 mesi fa