Gelöst


product of given two numbers?
product of given two numbers?

fast 10 Jahre vor

Gelöst


how to round off a given number containing decimals?
how to round off a given number containing decimals?

fast 10 Jahre vor

Gelöst


How find sum of elements of each column in matrix?
How find sum of elements of each column in matrix?

fast 10 Jahre vor

Gelöst


How find minimum element of a column in matrix?
How find minimum element of a column in matrix?

fast 10 Jahre vor

Gelöst


How find maximum element of a column in matrix?
How find maximum element of a column in matrix?

fast 10 Jahre vor

Gelöst


How to find average of each column ?
How to find average of each column for a given matrix?

fast 10 Jahre vor

Gelöst


Count given word x in text.
Count how many times given word x repeats in text.

fast 10 Jahre vor

Gelöst


Solve expression I
Solve expression (1+sin(x))/cos(x)+cos(x)/(1+sin(x)) for given vector x.

fast 10 Jahre vor

Gelöst


Solve expression II
Solve given expression. alpha=0.1(-x-y-50)/(exp((-x-y-50)/10)-1) beta=5exp((-x+y-60)/20) result=alpha+beta;

fast 10 Jahre vor

Gelöst


Calculate cross product
Make function for cross product a=[1 3 2]; b=[2 4 1]; y=function(a,b) y=[-5 3 -2]

fast 10 Jahre vor

Gelöst


Solve expression III
Solve expression for given vector x. Expression = (tan(2*x^2+7*x-30.25)+log(x^3-2.25))/(nthroot(sin(x^3)^2+1/5*log(x^4-2.5),3))...

fast 10 Jahre vor

Gelöst


Marvel or DC?
Given input vector determine if there's a DC value. If there is, output 'DC', else output 'MARVEL'

fast 10 Jahre vor

Gelöst


Calculate solution of given polynomial
For example, y=function([3 -2 -4]) In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation. y=[1.5...

fast 10 Jahre vor

Gelöst


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

fast 10 Jahre vor

Gelöst


Finding two missing number in 1 to n array
You are given an array of numbers from 1 to n with two missing numbers. Return the two missing numbers. Input: x=[5 2 0 1 ...

fast 10 Jahre vor

Gelöst


Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle. Say a = 4, b = 3 then c = 5 Please don't use ^ and sqrt() function.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Problem


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

fast 10 Jahre vor | 4 | 356 Lösungsvorschläge

Gelöst


Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

fast 10 Jahre vor

Gelöst


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

fast 10 Jahre vor

Gelöst


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

fast 10 Jahre vor

Gelöst


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

fast 10 Jahre vor

Gelöst


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

fast 10 Jahre vor

Gelöst


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

fast 10 Jahre vor

Gelöst


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

fast 10 Jahre vor

Gelöst


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

fast 10 Jahre vor

Gelöst


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

fast 10 Jahre vor

Gelöst


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

fast 10 Jahre vor

Mehr laden