Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


Converts numbers into characters
Converts numbers into characters

7 meses hace

Resuelto


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

7 meses hace

Resuelto


Draw a '0' in a one matrix!

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


to the 2 all elements
to the 2 all elements

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace

Resuelto


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

7 meses hace