Solved


Select primes from the matrix.
Select primes from the matrix.

9 years ago

Solved


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

9 years ago

Solved


Percentage profit
If you are buying at x dollar, what will be the selling price for making the r% profit?

9 years ago

Solved


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

9 years ago

Solved


true or false
if the matrix has a zero, return true. else, return false

9 years ago

Solved


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

9 years ago

Solved


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

9 years ago

Solved


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

9 years ago

Solved


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

9 years ago

Solved


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

9 years ago

Solved


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

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

9 years ago

Solved


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

9 years ago

Solved


row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.

9 years ago

Solved


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

9 years ago

Solved


Radians to Degrees
Convert radians to degrees.

9 years ago

Solved


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

9 years ago

Solved


Create a constant offset.
Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

9 years ago

Solved


Create tangent function out of cosine only
Please don't use tangent and sine functions

9 years ago

Solved


Solve expression I
Solve expression (1+sin(x))/cos(x)+cos(x)/(1+sin(x)) for given vector x.

9 years ago

Solved


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

9 years ago

Solved


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

9 years ago

Solved


Create sine function out of cosine
Please don't use sin(x) directly

9 years ago

Solved


Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

9 years ago

Solved


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

9 years ago

Solved


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

9 years ago

Solved


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]

9 years ago

Solved


Create tangent function out of sin and cos
Please don't use tan(x) directly

9 years ago

Solved


raise 1/3
Raise a number to 1/3 power.

9 years ago

Solved


Degrees to Radian
Convert degrees to radians

9 years ago

Load more