Risolto


PEMDAS test
Create the function that will return the following expression for x and y. <<https://i.ibb.co/RHWyzrv/Code-Cogs-Eqn-1.gif>> ...

oltre 4 anni fa

Risolto


Generate n equally spaced "intervals" between -x and x
Given n and x, return a list of numbers (in ascending order) that divides the interval [-x x] into n equal-length intervals. ...

oltre 4 anni fa

Risolto


Create logarithmically spaced values
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b. Thus, if a = -2, ...

oltre 4 anni fa

Risolto


Create a vector of n alternating ones and zeros
Given n, your output should be a vector y of numnbers such that the first number is 1 and the numbers following it alternate bet...

oltre 4 anni fa

Risolto


Create a vector of the first n odd numbers
If n = 10, your program should return a vector y, where y = [1 3 5 7 9 11 13 15 17 19].

oltre 4 anni fa

Risolto


Element-wise vector product
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

oltre 4 anni fa

Risolto


Put two time series onto the same time basis
Use interpolation to align two time series onto the same time vector. This is a problem that comes up in <http://www.mathwork...

oltre 4 anni fa

Risolto


Vector raised to a power (element-wise)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

oltre 4 anni fa

Risolto


Create a vector with n repeated values of a number x
If x=3 and n=7 then the vector y would be y=[3 3 3 3 3 3 3]

oltre 4 anni fa

Risolto


Create a vector of the first n naturnal numbers
If n = 7, your program should return a vector y, where y = [1 2 3 4 5 6 7].

oltre 4 anni fa

Risolto


Product of a and b
return the value of c = a*b

oltre 4 anni fa

Risolto


Joining Ranges
You are given a n-by-2 matrix. Each row represents a numeric range, e.g. x = [0 5; 10 3; 20 15; 16 19; 25 25] contains...

oltre 4 anni fa

Risolto


4 Digit Sequence Repetitions
Given a 4 digit integer, a sequence can be created such that the next digit in the sequence is the ones digit from the sum of th...

oltre 4 anni fa

Risolto


Quarantine Days
In these quarantine days, a list of what Max may do on a typical day is given in a table with the starting hour to ending hour. ...

oltre 4 anni fa

Problema


Quarantine Days
In these quarantine days, a list of what Max may do on a typical day is given in a table with the starting hour to ending hour. ...

oltre 4 anni fa | 1 | 13 risolutori

Risolto


Remove Missing Values from a Table or an Array
Remove missing entries from an array or table. If A is a vector, then remove any entry that contains missing data. If A is a mat...

oltre 4 anni fa

Risolto


Is this group simply connected?
Given connectivity information about a graph, your job is to figure out if the graph is fully connected. You are given a list of...

oltre 4 anni fa

Risolto


Juego de posiciones
Crea una función que ordene vectores de tal manera que los primeros números sean negativos ordenados de menor a mayor. Y después...

oltre 4 anni fa

Risolto


Successive zeros
suppose n is the number of digits a number can contain. Now, 12032 - is a valid n=5 digit number. But 10023 - is defined a...

oltre 4 anni fa

Problema


Successive zeros
suppose n is the number of digits a number can contain. Now, 12032 - is a valid n=5 digit number. But 10023 - is defined a...

oltre 4 anni fa | 2 | 16 risolutori

Risolto


Capitalize
Capitalize the 1st letter of each input. Other letters should be lowercase. For example - a='alphaS' >> 'Alphas' a='1...

oltre 4 anni fa

Problema


Capitalize
Capitalize the 1st letter of each input. Other letters should be lowercase. For example - a='alphaS' >> 'Alphas' a='1...

oltre 4 anni fa | 2 | 24 risolutori

Risolto


Weighted Names
A cell is given which contains several names. You've to return those names sorted by their weight. Weight is to be calculate...

oltre 4 anni fa

Problema


Weighted Names
A cell is given which contains several names. You've to return those names sorted by their weight. Weight is to be calculate...

oltre 4 anni fa | 1 | 6 risolutori

Risolto


The Dark Knight
The current position of the knight is x The desired destination is y The size of the chessboard is n. Find the minimu...

oltre 4 anni fa

Problema


The Dark Knight
The current position of the knight is x The desired destination is y The size of the chessboard is n. Find the minimu...

oltre 4 anni fa | 2 | 10 risolutori

Risolto


Oxidation State
* In some chemical compounds, the oxidation state of each atom of hydrogen H is +1. * In some chemical compounds, the oxidation...

oltre 4 anni fa

Risolto


Prime Sum
What is the minimum value that can be written as sum of primes in n different ways? For example, 10 is the minimum value th...

oltre 4 anni fa

Problema


Prime Sum
What is the minimum value that can be written as sum of primes in n different ways? For example, 10 is the minimum value th...

oltre 4 anni fa | 0 | 7 risolutori

Risolto


Find the path through the cell
A list of cells is given. Return true if the elements of the list increase monotonically (each element is strictly larger tha...

oltre 4 anni fa

Carica altro