Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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]

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Mean of a matrix
Determine numeric mean of a matrix

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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;

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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]

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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.

casi 10 años hace

Resuelto


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]

casi 10 años hace

Resuelto


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

casi 10 años hace

Cargar más