Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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)

10 years ago

Solved


Primes Checker
Given variable inputs Check if they are prime numbers

10 years ago

Solved


Sum of Optimus
Get the sum of primes :)

10 years ago

Solved


How many Optimus
Get the number of primes given a vector

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


Non trivial identities - transpose
Return x by transposing it.

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


BaeIsAlwaysRight
Output yes whatever bae says

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Load more