문제를 풀었습니다


Potential Energy
Calculate the potential energy of a rock.

대략 9년 전

문제를 풀었습니다


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

대략 9년 전

문제를 풀었습니다


Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

대략 9년 전

문제를 풀었습니다


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

대략 9년 전

문제를 풀었습니다


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

대략 9년 전

문제를 풀었습니다


Matrix FUN
Given a Matrix M, find out the number of elements of matrix that are divisible by 3. M = [1 2 3;4 5 6;7 8 9]; ou...

대략 9년 전

문제를 풀었습니다


Generate the Matrix!
Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

대략 9년 전

문제를 풀었습니다


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

대략 9년 전

문제를 풀었습니다


Remove the Zero
Given an array n, remove all zeros

대략 9년 전

문제를 풀었습니다


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

대략 9년 전

문제를 풀었습니다


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

대략 9년 전

문제를 풀었습니다


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

대략 9년 전

문제를 풀었습니다


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

대략 9년 전

문제를 풀었습니다


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

대략 9년 전

문제를 풀었습니다


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

대략 9년 전

문제를 풀었습니다


Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

대략 9년 전

문제를 풀었습니다


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

대략 9년 전

문제를 풀었습니다


Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

대략 9년 전

문제를 풀었습니다


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

대략 9년 전

문제를 풀었습니다


only input
Return the output without writing any code into the function.

대략 9년 전

문제를 풀었습니다


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

대략 9년 전

문제를 풀었습니다


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

대략 9년 전

문제를 풀었습니다


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

대략 9년 전

문제를 풀었습니다


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

대략 9년 전

문제를 풀었습니다


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

대략 9년 전

문제를 풀었습니다


Concatenate two strings
Its very easy. Just concatenate two strings.

대략 9년 전

문제를 풀었습니다


Reverse a matrix
Its simple. You have to reverse a given matrix.

대략 9년 전

문제를 풀었습니다


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

대략 9년 전

문제를 풀었습니다


Max of a Vector
Write a function to return the max of a vector

대략 9년 전

문제를 풀었습니다


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

대략 9년 전

더 보기