Solved


Soccer - TOTO
How many different outcomes are there in a soccer-TOTO with n games? For each game there are three results: win - loss - equa...

2 years ago

Solved


My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

2 years ago

Solved


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

2 years ago

Solved


Find parts of a circle.
Given radius (r) of a circle find the diameter (d), circumference (c), an area (a).

2 years ago

Solved


Create a code for XNOR
Given two inputs, output XNOR of those two

2 years ago

Solved


Flow rate in a pipe

2 years ago

Solved


Maior Primo
Dado um valor inteiro N, qual o maior valor primo <= N MaiorPrimo(5) = 5; MaiorPrimo(10) = 7;

2 years ago

Solved


Summy's even sum

2 years ago

Solved


Summy's odd sum

2 years ago

Solved


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

2 years ago

Solved


Falling on the Moon.

2 years ago

Solved


Sort in descending order.

2 years ago

Solved


Which one is More bigger?
we have two input like (x,y) our output (z) must wich one is bigger input.

2 years ago

Solved


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

2 years ago

Solved


Hydrogens in a Saturated Hydrocarbon
Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

2 years ago

Solved


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

2 years ago

Solved


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

2 years ago

Solved


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 years ago

Solved


Compare two strings.
Compare two strings, whether they are equal or not.

2 years ago

Solved


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

2 years ago

Solved


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

2 years ago

Solved


Slope of the line passing through two points
Determine the slope of a line passing through the points a=[x1 y1] and b=[x2 y2].

2 years ago

Solved


Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

2 years ago

Solved


Cumulative product of a vector
Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

2 years ago

Solved


Add two hex numbers
Add two hex numbers

2 years ago

Solved


Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample Example: if x=4 and n=3 Answer must be=[1 100 10...

2 years ago

Solved


Count number of words in string
Count number of words in string Examples 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

2 years ago

Solved


特定の値がベクトル内に含まれているかを確認するコードを書こう
ベクトル b にあるスカラ値 a が含まれていれば出力として 1 を返し、含まれていなければ 0 を返すような関数を作成しましょう。 例: a = 3; b = [1,2,4]; スカラ値 3 はベクトル b に含まれていない...

2 years ago

Solved


NaN (欠損値) が含まれている行を削除しよう
行列 A が与えられたとき、その行列の中に NaN (Not a number; 欠損値) の要素がある行を見つけ出し、その行を削除しましょう。 例: A = [ 1 5 8 -3 NaN 14 ...

2 years ago

Load more