Risolto


N-plicate me
Modified version of duplicate and triplicate me. Repeat elements of input vector with given input n Ex: input = [1 2 3 4 5...

circa 10 anni fa

Risolto


Duplicate me
Repeat elements of vector input twice Ex: input = [1 2 3] output = [1 1 2 2 3 3]

circa 10 anni fa

Risolto


Half wave rectifier
Create a function that emulates a half wave rectifier. Use a sine wave

circa 10 anni fa

Risolto


Full Wave rectifier
Create a function that emulates a full wave rectifier. Use a sine wave

circa 10 anni fa

Risolto


Clamper Function
Create a function that emulates a clamper circuit Given sin wave, t and the constant value for clamping

circa 10 anni fa

Risolto


Clipper Function
Create a function that emulates a clipper circuit Given sin wave, t and the constant value for clipping, and the direction to re...

circa 10 anni fa

Risolto


Create cosine function out of sine
Please dont use cos(x) directly

circa 10 anni fa

Risolto


Create sine function out of cosine
Please don't use sin(x) directly

circa 10 anni fa

Risolto


Create tangent function out of sine function only
Please don't use cosine and tangent functions

circa 10 anni fa

Risolto


Create tangent function out of cosine only
Please don't use tangent and sine functions

circa 10 anni fa

Risolto


Create tangent function out of sin and cos
Please don't use tan(x) directly

circa 10 anni fa

Risolto


Convert radians to degrees
Given input in radians, output to degrees

circa 10 anni fa

Risolto


Convert degrees to radians
Given input in degrees, output to radians

circa 10 anni fa

Risolto


Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1 1 1]

circa 10 anni fa

Risolto


Create a code for XNOR
Given two inputs, output XNOR of those two

circa 10 anni fa

Risolto


Modified run-length companion vector
Given a vector x, return a vector that indicates the run length of any value in x. Each element in output vector shows how many ...

circa 10 anni fa

Risolto


Find the outcast
All pairs have the same difference except for one. Output the index of the latter Example: input =[0 1; 1 0; 2 3; 4 5;] ou...

circa 10 anni fa

Risolto


Determine Size of Matrix
Use any function that would output size of matrix

circa 10 anni fa

Risolto


Super Basic - 3 + true equals ??
Solve the title

circa 10 anni fa

Risolto


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

circa 10 anni fa

Risolto


Sum of Optimus
Get the sum of primes :)

circa 10 anni fa

Risolto


How many Optimus
Get the number of primes given a vector

circa 10 anni fa

Risolto


Sum of the squares of optimus
Get the sum of the squares of primes given limit input x Ex. x = 10, output = 2^2 + 3^2 + 5^2 + 7^2

circa 10 anni fa

Risolto


Square of the sum of optimus
Get the square of the sum of all primes given the limit input x

circa 10 anni fa

Risolto


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 x1 = 123444...

circa 10 anni fa

Risolto


Mode of Optimus!!!
Get the mode of primes of input x When you get the output, you'll know what mode Optimus is always using :)

circa 10 anni fa

Risolto


Ceil Me Now
Get the ceiling of the input matrix

circa 10 anni fa

Risolto


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

circa 10 anni fa

Risolto


Triplicate me
Given an input vector, output a 3n vector with all elements of input vector repeated thrice Example : in->[1 2 3 5] out...

circa 10 anni fa

Risolto


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

circa 10 anni fa

Carica altro