A résolu


'Price of pizza!'
If you want to check pizza's price, try this! price is proportional to its volume, so you have to multiply 0.1($) to pizza's v...

plus de 7 ans il y a

A résolu


Pairwise column flip
Given matrix *M_in*, flip every pair of columns. So if *M_in* is 1 2 3 4 1 2 3 4 then *M_out* is 2 1 4 3 2 1 4 3 ...

plus de 7 ans il y a

A résolu


Implement a bubble sort technique and output the number of swaps required
A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...

plus de 7 ans il y a

A résolu


Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

plus de 7 ans il y a

A résolu


Return the length of the longest word in the string.
Example: Input s='A fractal is a natural phenomenon or a mathematical set that exhibits a repeating pattern that display...

plus de 7 ans il y a

A résolu


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

plus de 7 ans il y a

A résolu


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


Create vector as shown in test cases
Create vector as shown in test cases

plus de 7 ans il y a

A résolu


Logarithm with base other than 'e'
Standard log() function returns natural logarithm with base equal to Euler constant. Compute logarithm for a given base.

plus de 7 ans il y a

A résolu


Number of nonzero elements in matrix
Calculate the number of nonzero elements for given matrix

plus de 7 ans il y a

A résolu


My cat likes strings!!
Create a string of specified length or more. It's that simple!

plus de 7 ans il y a

A résolu


Solve the system of equations.
_Ax=b_ * _A_ - square coefficient matrix * _b_ - right side column vector Find vecor _x_.

plus de 7 ans il y a

A résolu


Sort rows of a matrix
Sort rows of matrix A in an ascending order according to the last column Example input: A = [1 2 3;7 8 9;4 5 6]; Exam...

plus de 7 ans il y a

A résolu


What does the "B" in Benoit B Mandelbrot stand for?
Tip https://en.wikipedia.org/wiki/Mandelbrot_set

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


Find product of eigenvalues of n*n magic matrix.
Find product of eigenvalues of n*n magic matrix. Example n=3 Matrix= [ 8 1 6; 3 5 7; 4 ...

plus de 7 ans il y a

A résolu


Get linearly independent vectors of given matrix.
Get linearly independent vectors of given matrix. Example matrix=[ 3 -1 0 0 ; 0 3 0 0...

plus de 7 ans il y a

A résolu


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

plus de 7 ans il y a

A résolu


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

plus de 7 ans il y a

A résolu


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

plus de 7 ans il y a

A résolu


Square root of a number
Write a code that will output the square root of x.

plus de 7 ans il y a

A résolu


Find the qube of a give number.
You are given a number, find the qube of that number.

plus de 7 ans il y a

A résolu


modulus of a number
find the modulus of a given number

plus de 7 ans il y a

A résolu


Halder function
Find the halder function value of a number

plus de 7 ans il y a

A résolu


find max
You are given an array number find the maximum

plus de 7 ans il y a

A résolu


find minimum
find the minimum from an array

plus de 7 ans il y a

A résolu


find sum of the numbers in array
calculate the sum of numbers in a given array

plus de 7 ans il y a

A résolu


Find mean
given an array, find the mean of the number in that array

plus de 7 ans il y a

Charger plus