Resuelto


Product of Array
Given an array of numbers. Get the product of the array.

más de 5 años hace

Resuelto


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


Values in Array
How many values are in the array

más de 5 años hace

Resuelto


Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

más de 5 años hace

Resuelto


multiply an array by its position number
You have given an array. Multiply an array by its position number

más de 5 años hace

Resuelto


modulus of a number
find the modulus of a given number

más de 5 años hace

Resuelto


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

más de 5 años hace

Resuelto


first element of matrix
find the first elements of a column matrix

más de 5 años hace

Resuelto


Find remainder when x is divided by 3
Find remainder when x is divided by 3

más de 5 años hace

Resuelto


Rounding
Round 10.67 and make 'y' equal to that number.

más de 5 años hace

Resuelto


Complex number
For complex number c=a+bi, write code that will add a and b together.

más de 5 años hace

Resuelto


Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

más de 5 años hace

Resuelto


Calculate square and cube of number
Calculate square and cube of number x

más de 5 años hace

Resuelto


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

más de 5 años hace

Resuelto


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

más de 5 años hace

Resuelto


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

más de 5 años hace

Resuelto


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

más de 5 años hace

Resuelto


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

más de 5 años hace

Resuelto


Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

más de 5 años hace

Resuelto


Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

más de 5 años hace

Resuelto


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

más de 5 años hace

Resuelto


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

más de 5 años hace

Resuelto


only input
Return the output without writing any code into the function.

más de 5 años hace

Resuelto


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

más de 5 años hace

Resuelto


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

más de 5 años hace

Resuelto


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

más de 5 años hace

Resuelto


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

más de 5 años hace

Cargar más