A résolu


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 mois il y a

A résolu


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 mois il y a

A résolu


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 mois il y a

A résolu


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 mois il y a

A résolu


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 mois il y a

A résolu


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 mois il y a

A résolu


Converts numbers into characters
Converts numbers into characters

11 mois il y a

A résolu


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

11 mois il y a

A résolu


Draw a '0' in a one matrix!

11 mois il y a

A résolu


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 mois il y a

A résolu


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

11 mois il y a

A résolu


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

11 mois il y a

A résolu


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

11 mois il y a

A résolu


to the 2 all elements
to the 2 all elements

11 mois il y a

A résolu


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

11 mois il y a

A résolu


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

11 mois il y a

A résolu


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

11 mois il y a