문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


Converts numbers into characters
Converts numbers into characters

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


Draw a '0' in a one matrix!

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


to the 2 all elements
to the 2 all elements

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


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

9개월 전