Solved

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

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

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

4 years ago

Solved

String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

4 years ago

Solved

Automatic String Editing
In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...

4 years ago

Solved

Take two incoming vectors and output the sum of the two vectors

4 years ago

Solved

Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

4 years ago

Solved

Vector Element Multiplication
Take two incoming vectors, and output the element wise multiplication of the vectors.

4 years ago

Solved

Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

4 years ago

Solved

Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

4 years ago

Solved

Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

4 years ago

Solved

Component area
Find the area of the component below, all measurements are in mm <<https://image.ibb.co/hocruF/Component.png>>

4 years ago

Solved

concatenate the elements
you should concatenate the elements of a matrix in one dimensional array, for example if the input is A = [1 2 3; 4 5 6; 7 ...

4 years ago

Solved

Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g xă=ă[ 4 6 8 9 1 2 7 ] y =ă( 6 + 9 + 2 ) / 3

4 years ago

Solved

Average of odd values
Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

4 years ago

Solved

Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

4 years ago

Solved

Calculate the sum of two polynomials
Calculate the sum of two polynomials if they are written in notation with their coefficients. example: a=[3 4 5]; b=[...

4 years ago

Solved

Combination of Vectors
Return a combination of vectors x1, x2 based on y1, y2 per: x(j) = 0 if y1(j) < y2(j) x(j) = x1(j) if y1(j)...

4 years ago

Solved

Brain Teaser Solver
Write an algorithm to solve this brain teaser: You have a square that is broken into four triangles, the area of three of tho...

4 years ago

Solved

Calculate feeling temperature before climbing a mountain
I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

4 years ago

Solved

Replace Nan!
Replace Nan in the given vector(v) with 9999.

4 years ago

Solved

Geometric Series
Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.

4 years ago

Solved

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

4 years ago

Solved

Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

4 years ago

Solved

Area of square
Find the area of a square whose diagonal length is given as x.

4 years ago

Solved

Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

4 years ago

Solved

Divisible by 21
Write a function to determine if a number is divisible by 21.

4 years ago

Solved

Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

4 years ago

Solved

How brilliant are you?
A Brilliant number is defined as a number with two prime factors, both of which have the same number of digits. Some examples: ...

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

4 years ago