A résolu


Do you have the minimum age?

plus d'un an il y a

A résolu


Replace with Lower
Given a list of integers, for each element, replace it with the minimum integer found in the sub-list to its strict right (exclu...

plus d'un an il y a

A résolu


Find the largest sum of any contiguous subarray
Given an array of N integers, find the contiguous subarray (which must contain at least one number) with the maximum sum and ret...

plus d'un an il y a

A résolu


modulus of a number
find the modulus of a given number

plus d'un an il y a

A résolu


Halder function
Find the halder function value of a number

plus d'un an il y a

A résolu


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

plus d'un an il y a

A résolu


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

plus d'un an il y a

A résolu


No more zeros
Given an array with zeros at the beginning or at the end, you should get the output without these zeros: input = [zeros(5...

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

plus d'un an il y a

A résolu


Solve t^(a*x^2+b*x+c)=s
Solve t^(a*x^2+b*x+c)=s. Return x vector as result. Example a=1, b=2, c=1, t=3, s=15. Result x(1)= 0.5700 x(2)=-2.5700 H...

plus d'un an il y a

A résolu


Find Euclidean norm of given vector u.
Find Euclidean norm of given vector u. https://en.wikipedia.org/wiki/Euclidean_distance Example x=[1 1] result=sqrt(1^2+1^2...

plus d'un an il y a

A résolu


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

plus d'un an il y a

A résolu


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

plus d'un an il y a

A résolu


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

plus d'un an il y a

A résolu


Sort by absolute value
Given a list of numbers, arrange them in ascending order based on their absolute values. For example, for the list [-30, -5, 1...

plus d'un an il y a

A résolu


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

presque 2 ans il y a

A résolu


Nth root
Nth root of a number x

presque 2 ans il y a

A résolu


Times 5
Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

presque 2 ans il y a

A résolu


Square
square root of x

presque 2 ans il y a

A résolu


cube of number
find cube of number

presque 2 ans il y a

A résolu


square root
Find square root of given number

presque 2 ans il y a

A résolu


Squares inside a square!

presque 2 ans il y a

A résolu


Area of a rectangle
FInd the area of a rectangle with a length L and width W. Round to the nearest integer.

presque 2 ans il y a

A résolu


Too Many Zeros, Dump Them!
Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

presque 2 ans il y a

A résolu


Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

presque 2 ans il y a

A résolu


Multiply to the limit?
If y = 4*x*x/pi/pi then what is the ultimate limiting result of (1+y/1/1)(1+y/3/3)(1+y/5/5)(1+y/7/7)... ... within 1000*eps?

presque 2 ans il y a

Charger plus