Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

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

3 years ago

Solved


radius of a spherical planet
You just measured its surface area, that is the input.

3 years ago

Solved


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

3 years ago

Solved


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

3 years ago

Solved


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

3 years ago

Solved


Find the max element of the array
Find the max element of the array

3 years ago

Solved


calculate the length of matrix
input 1 array, calculate the length

3 years ago

Solved


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

3 years ago

Solved


Converts numbers into characters
Converts numbers into characters

3 years ago

Solved


Double all elements in the array
Duplicate all elements in the array

3 years ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

3 years ago

Solved


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

3 years ago

Solved


easy problem
Find the last element of the array

3 years ago

Solved


to the 2 all elements
to the 2 all elements

3 years ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

3 years ago

Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

3 years ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

3 years ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

3 years ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

3 years ago

Solved


Find max
Find the maximum value of a given vector or matrix.

3 years ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

3 years ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

3 years ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

3 years ago

Solved


Draw a '6' in a zero matrix!

3 years ago

Solved


Draw a '3' in a zero matrix!

3 years ago

Solved


Draw a '8' in a zero matrix!

3 years ago

Solved


Draw a '5' in a zero matrix!

3 years ago

Solved


Draw a '9' in a zero matrix!

3 years ago

Solved


Draw a '4' in a zero matrix!

3 years ago

Load more