문제를 풀었습니다


Convert array of decimal numbers into binary numbers array.
Convert array of decimal numbers into binary numbers array. Example x = [1 2 3 4 5 6 7 8 ]; re...

9년 초과 전

문제를 풀었습니다


Count given word x in text.
Count how many times given word x repeats in text.

9년 초과 전

문제를 풀었습니다


i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

9년 초과 전

문제를 풀었습니다


Chicken Race
2 chickens, Pete and Fred, compete in a 100 meter race. Pete runs at a velocity of vp meter/second and Fred is slower, running ...

9년 초과 전

문제를 풀었습니다


How to find average of each column ?
How to find average of each column for a given matrix?

9년 초과 전

문제를 풀었습니다


How find sum of elements of each column in matrix?
How find sum of elements of each column in matrix?

9년 초과 전

문제를 풀었습니다


product of given two numbers?
product of given two numbers?

9년 초과 전

문제를 풀었습니다


how to round off a given number containing decimals?
how to round off a given number containing decimals?

9년 초과 전

문제를 풀었습니다


How find minimum element of a column in matrix?
How find minimum element of a column in matrix?

9년 초과 전

문제를 풀었습니다


Assignment Problem
Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

9년 초과 전

문제를 풀었습니다


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

9년 초과 전

문제를 풀었습니다


Tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

9년 초과 전

문제를 풀었습니다


jumping astronauts
The surface gravity on the moon is approximately 2 m/s^2. Thats why an funny astronauts feels as light as a feather and jumps fr...

9년 초과 전

문제를 풀었습니다


Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

9년 초과 전

문제를 풀었습니다


Rearrange string
Input is a given string. Output is the number of ways to rearrange the string.

9년 초과 전

문제를 풀었습니다


Block average
Given a matrix, calculate the block average of each disjoint sub-matrix of the same size. Assume that the size of the matrix alo...

9년 초과 전

문제를 풀었습니다


Convert float to base N
The matlab function dec2base converts a positive integer number to a specified base. Extend it so that it works with non intege...

9년 초과 전

문제를 풀었습니다


Calculate solution of given polynomial
For example, y=function([3 -2 -4]) In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation. y=[1.5...

9년 초과 전

문제를 풀었습니다


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

9년 초과 전

문제를 풀었습니다


Set number x for diagonal of square matrix, which size is n.
Set number x for diagonal of square matrix, other values should be equlal 0, which size is n. Example n=2, x=4: [4 0; 0 4]

9년 초과 전

문제를 풀었습니다


Find the sum of the negative elements under the main diagonal.
Example Input A=[1 2; -3 0] Output -3

9년 초과 전

문제를 풀었습니다


how to create zero square matrix with given order?
y-Zero square matrix with given input order x.

9년 초과 전

문제를 풀었습니다


Magnitude of a vector
Given a vector x, what is its magnitude?

9년 초과 전

문제를 풀었습니다


Cellular Automaton | Rule X
Cellular Automata (CA) provide a convenient way to represent many kinds of systems in which the values of cells (either 0 or 1) ...

9년 초과 전

문제를 풀었습니다


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

9년 초과 전

문제를 풀었습니다


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

9년 초과 전

문제를 풀었습니다


Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

9년 초과 전

문제를 풀었습니다


How Far Can You Throw Something?
As you probably learned in your high school physics class, throwing an object at a 45 degree angle will give you the maximum ran...

9년 초과 전

문제를 풀었습니다


Increasing sub-sequence (Level 1)
Given a vector, v, of real numbers, return a positive integer, n, representing the longest contiguous increasing sub-sequence co...

9년 초과 전

문제를 풀었습니다


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

9년 초과 전

더 보기