Risolto


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

circa 10 anni fa

Risolto


Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

circa 10 anni fa

Risolto


Calculate representive values (max. min. std)
A B C -------------------------- t=1 2.2 2.6 2.4 t=2 2.4 2.8 2.2 t=3 2.6 2.7 2....

circa 10 anni fa

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


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


Calculate BMI
BMI = (weight_in_lbs * 703) / (height_in_inches^2) Inputs are in kg and cm

circa 10 anni fa

Risolto


Max Sum That You Can Get Of 2 Numbers given variable input
Given variable input length,combine 2 numbers from and output maximum sum the combinations can generate Example x = 3; y = 5;...

circa 10 anni fa

Risolto


Multiply all elements of vector but not me
me = 1 Just a freebie Good luck :)

circa 10 anni fa

Risolto


Check that given number is 3*n
Check that input of multiple of three (3*n). if given number is included in 3*n, print true. (hint: use mod)

circa 10 anni fa

Risolto


Primes Checker
Given variable inputs Check if they are prime numbers

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


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


Find my daddy long leg (No 's')
Given the ratio of the two legs,and the hypotenuse, find the value of the bigger leg

circa 10 anni fa

Risolto


Replace x value into y value in string text.
Replace x value into y value in string text. Example text='Hello World' x='World', y='Universe' result='Hello Universe'.

circa 10 anni fa

Risolto


Non trivial identities - transpose
Return x by transposing it.

circa 10 anni fa

Risolto


ADD TWO NUMBERS
To add two numbers a and b, then store in y

circa 10 anni fa

Risolto


Make roundn function
Make roundn function. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) y=0.56 ...

circa 10 anni fa

Risolto


Weighted moving average
x1=[1 2 1]; y1=[1 2 2 4 5 6 6 8]; Make function for weighted moving average. z(i)=(x1(i)*y1(i)+x1(i+1)*y1(i+1)+x1(i+2)*y1...

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


Money money money
There's a group of men called 5/6. It's like when you borrow $5, you need to pay him $6 Try to code, 5/6 people haha

circa 10 anni fa

Risolto


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

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


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


Creating a code via test suite :)
Given the test suites, create a code that would fit them :) *Clue: Pascal's Triangle

circa 10 anni fa

Risolto


Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

circa 10 anni fa

Risolto


BaeIsAlwaysRight
Output yes whatever bae says

circa 10 anni fa

Risolto


Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

circa 10 anni fa

Risolto


Convert Miles To Kilometers
Given input in miles, output into kilometers

circa 10 anni fa

Carica altro