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...
8年弱 前
解決済み
i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i".
So correct the input string x, but be aware that other u...
Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...
8年弱 前
解決済み
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;
Print true if
all elements are larger than 5
a=[1 3 5 8 6];
b=[6 6 6 6 6];
function(a) should be false, and function(b) will be tru...
8年弱 前
解決済み
A little bit of luck needed
This one may require a little bit of guess work, but it is possible.
Hints:
- The same solution might fail the tests once and ...
8年弱 前
解決済み
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 ...
8年弱 前
解決済み
Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.