문제를 풀었습니다


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

2년 초과 전

문제를 풀었습니다


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

2년 초과 전

문제를 풀었습니다


X plus binary inverted x
Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

2년 초과 전

문제를 풀었습니다


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

2년 초과 전

문제를 풀었습니다


Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

2년 초과 전

문제를 풀었습니다


Reverse digits of a number
Reverse digits of a number. For example, return *321* for the input *123* . The left-hand zeros can be discarded. For exam...

2년 초과 전

문제를 풀었습니다


Octoberfest festival
A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

2년 초과 전

문제를 풀었습니다


Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides. Output(b): * Is true if there are any 3 va...

2년 초과 전

문제를 풀었습니다


Number of odd and even elements within matrix
Input(m) - any matrix with integers Output(n) - n(1)=number of odd elements, n(2)=number of even elements Example: * m=...

2년 초과 전

문제를 풀었습니다


Sum of logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...

2년 초과 전

문제를 풀었습니다


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

2년 초과 전

문제를 풀었습니다


Convert from integer to binary
if true % decimalToBinaryVector(x) end

2년 초과 전

문제를 풀었습니다


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

2년 초과 전

문제를 풀었습니다


Throw common elements of two vector arrays in sorted manner
Throw common elements as output in sorted manner (acending order) of two given input vector arrays

2년 초과 전

문제를 풀었습니다


Divisors

2년 초과 전

문제를 풀었습니다


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

2년 초과 전

문제를 풀었습니다


Square
square root of x

2년 초과 전

문제를 풀었습니다


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


Set x value to each even index of vector y.
Set x value to each even index of vector y.

2년 초과 전

문제를 풀었습니다


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

2년 초과 전

문제를 풀었습니다


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

2년 초과 전

문제를 풀었습니다


Display positive elements of matrix.
Display positive elements of matrix.

2년 초과 전

더 보기