Risolto


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

quasi 3 anni fa

Risolto


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.

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


Converts numbers into characters
Converts numbers into characters

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


easy problem
Find the last element of the array

quasi 3 anni fa

Risolto


to the 2 all elements
to the 2 all elements

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


Draw a '6' in a zero matrix!

quasi 3 anni fa

Risolto


Draw a '3' in a zero matrix!

quasi 3 anni fa

Risolto


Draw a '8' in a zero matrix!

quasi 3 anni fa

Risolto


Draw a '5' in a zero matrix!

quasi 3 anni fa

Risolto


Draw a '9' in a zero matrix!

quasi 3 anni fa

Risolto


Draw a '4' in a zero matrix!

quasi 3 anni fa

Carica altro