A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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)

presque 10 ans il y a

A résolu


Primes Checker
Given variable inputs Check if they are prime numbers

presque 10 ans il y a

A résolu


Sum of Optimus
Get the sum of primes :)

presque 10 ans il y a

A résolu


How many Optimus
Get the number of primes given a vector

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


Non trivial identities - transpose
Return x by transposing it.

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


BaeIsAlwaysRight
Output yes whatever bae says

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

A résolu


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

presque 10 ans il y a

Charger plus