Gelöst


Bubble sort
Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....

mehr als 9 Jahre vor

Gelöst


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0...

mehr als 9 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 ...

mehr als 9 Jahre vor

Gelöst


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

fast 10 Jahre vor

Gelöst


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

fast 10 Jahre vor

Gelöst


Performance - summation
Given a vector of natural numbers x = [1,2,3,...,N] compute the sum of its elements by not stressing the machine too much...

fast 10 Jahre vor

Gelöst


Geometrical meaning of determinant
Given two vectors x,y, in 2D or three vectors x,y,z in 3D space, compute the area (or volume) of the parallelogram they define. ...

fast 10 Jahre vor

Gelöst


Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

fast 10 Jahre vor

Gelöst


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

fast 10 Jahre vor

Gelöst


Pushing the envelope
Find the largest sized code to return... *nothing*.

fast 10 Jahre vor

Gelöst


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

fast 10 Jahre vor

Gelöst


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

fast 10 Jahre vor

Gelöst


Implement zero based indexing (Vectors only)
Given an input vector and position (which is zero based) output the value Example: x = [1 2 4 5] pos = 2 value = 4

fast 10 Jahre vor

Gelöst


Mean of a matrix
Determine numeric mean of a matrix

fast 10 Jahre vor

Gelöst


Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

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


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


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


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

fast 10 Jahre vor

Gelöst


Slope of the line passing through the point [x1 y1] and [x2 y2]
Determin the slope of Line passing through the points a=[x1 y1] and b=[x2 y2]

fast 10 Jahre vor

Gelöst


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

fast 10 Jahre vor

Gelöst


Find my daddy short leg
Given the ratio of the two legs,and the hypotenuse, find the value of the shorter leg

fast 10 Jahre vor

Gelöst


Make random permutation
Make random permutation that consist of random number from 1 to n.

fast 10 Jahre vor

Gelöst


Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Find x,y,z. Output should be a=[x;y;z].

fast 10 Jahre vor

Gelöst


DC-DC boost converter
Find the output voltage of a DC-DC boost converter when its input voltage is 12V and the duty cycle ratio is 0.6.

fast 10 Jahre vor

Gelöst


Modulation index
The amplitude of the carrier signal is 2V and the amplitude of the modulating signal is 8V. Find its modulation index.

fast 10 Jahre vor

Gelöst


Conduct inner product using given matrix
a=[1 2 3]; b=[3 4 5]; y=function(a,b) Output y should be 26

fast 10 Jahre vor

Gelöst


Print true if (2)
There are 0. a=[1 2 3 4 0]; b=[1 1 1 1 1]; function(a) is true, and function(b) is false.

fast 10 Jahre vor

Gelöst


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]

fast 10 Jahre vor

Gelöst


Create given matrix
y = 0 0 1 1 0 0 0 0 1 1 0 0 1 1 1 1 1 1 ...

fast 10 Jahre vor

Mehr laden