문제를 풀었습니다


Product of Each Column
Given a matrix |mat| with |n| columns, return a row vector |v| of length |n|, where every element in |v| is the product of the |...

5년 초과 전

문제를 풀었습니다


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

5년 초과 전

문제를 풀었습니다


Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!

5년 초과 전

문제를 풀었습니다


Largest Prime Number
Given a matrix X, find the largest prime number in X.

5년 초과 전

문제를 풀었습니다


Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

5년 초과 전

문제를 풀었습니다


Determine if input is a perfect number
A <http://en.wikipedia.org/wiki/Perfect_number/ perfect number> occurs whent the sum of all divisors of a positive integer, exce...

5년 초과 전

문제를 풀었습니다


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

5년 초과 전

문제를 풀었습니다


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

5년 초과 전

문제를 풀었습니다


Find the number that has most primes those less than it
Given an vector x of integer numbers, find the element of x that has the most primes less than it.

5년 초과 전

문제를 풀었습니다


Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

5년 초과 전

문제를 풀었습니다


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

5년 초과 전

문제를 풀었습니다


Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Find the index of nth maximum of a row vector of real numbers
Given a vector of real numbers x, find the index idx of _n_ th maximum value. If nth maximum occurs more than once, return the i...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

5년 초과 전

문제를 풀었습니다


Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Temperature question
get the temperature...in celcius

5년 초과 전

문제를 풀었습니다


Determine given vector is even or odd
Find the numbers of the input vector is odd or even then replace even with 1 and odd with 0 Example x = [ 3 3 4 6 1] ...

5년 초과 전

문제를 풀었습니다


Replace all odd numbers with NaN
Replace all odd numbers in the vector or matrix with NaN. For example, if x = [1 3 4 5 8 11]; then return y = [NaN Na...

5년 초과 전

문제를 풀었습니다


Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

5년 초과 전

문제를 풀었습니다


Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


determine amount cookies left
started with 3 cookies and you never ate any how many are left

5년 초과 전

더 보기