Solved

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

alrededor de 2 años ago

Solved

Calculate the volume of the cube.
Example n = 3; a=volume(n); a = 27

alrededor de 2 años ago

Solved

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

alrededor de 2 años ago

Solved

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

alrededor de 2 años ago

Solved

Add 3 to every element. However, if the value is greater than 100, subtract 100 and add 3. eg. input x = [45 106; 67 1...

alrededor de 2 años ago

Solved

Let's make puddings !
We will make puddings with eggs, milk and sugar. To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar. Now W...

alrededor de 2 años ago

Solved

find the logic,easy one
find the logic behind, example x=18 y=306 x=53 y=2809

alrededor de 2 años ago

Solved

Ounces to Kilograms
convert ounces to kilograms, easy

alrededor de 2 años ago

Solved

lb to kilogram
convert lb to kilogram units, easy

alrededor de 2 años ago

Solved

what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

alrededor de 2 años ago

Solved

short or buy ? take the opportunity
you had already calculated a theoretical stock value, now you checked in bloomberg the quoted price of that stock and you have t...

alrededor de 2 años ago

Solved

currency converter
given a rate of exchange calculate the equivalent units of 100 USD

alrededor de 2 años ago

Solved

Goldbach's marginal conjecture - Write integer as sum of three primes
Goldbach's strong conjecture states that every even integer greater than 2 can be expressed as the sum of two primes. For exampl...

alrededor de 2 años ago

Solved

Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

alrededor de 2 años ago

Solved

alrededor de 2 años ago

Solved

サイズが n*2n の "mirror" 行列（対称行列）を作成しましょう。 例: n=2 の場合、以下のような出力を返します。 m = [ 1 2 2 1 1 2 2 1 ] n = 3 の場合、以下のよう...

alrededor de 2 años ago

Solved

alrededor de 2 años ago

Solved

Sum of adjacent elements in a vector
Given a vector v, return a vector s containting the sum of every two adjacent elements in the vector. Every element s(i) cont...

alrededor de 2 años ago

Solved

Remove the first, third and fifth rows of a matrix
Given a matrix x with at least five rows, return a matrix y that includes all rows of x except for th 1st, the 3rd and 5th. E...

alrededor de 2 años ago

Solved

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

alrededor de 2 años ago

Solved

Decoder Ring
You are given a matrix of numbers, your objective is to use the decoder ring to find the hidden message. ex. encoded_messa...

más de 2 años ago

Solved

ascii value
let input='a' output=97

más de 2 años ago

Solved

vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

más de 2 años ago

Solved

Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

más de 2 años ago

Solved

Values in Array
How many values are in the array

más de 2 años ago

Solved

modulus of a number
find the modulus of a given number

más de 2 años ago

Solved

find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

más de 2 años ago

Solved

find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

más de 2 años ago

Solved

first element of matrix
find the first elements of a column matrix

más de 2 años ago

Solved

multiply an array by its position number
You have given an array. Multiply an array by its position number

más de 2 años ago