Solved


Find max
Find the maximum value of a given vector or matrix.

nästan 6 år ago

Solved


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

nästan 6 år ago

Solved


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

nästan 6 år ago

Solved


subtraction of two nos
given a and b, subtract and give the answer

nästan 6 år ago

Solved


Please check if calorie intake is less than 300 kcal.
I like eating some puddings and some chocolate cookies around 3 o'clock. However, I care about calorie intake. Please check whe...

nästan 6 år ago

Solved


Problem 44444 !!! free beer everyone
just say hallelujah to solve this problem

nästan 6 år ago

Solved


The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

nästan 6 år ago

Solved


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

nästan 6 år ago

Solved


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

nästan 6 år ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

nästan 6 år ago

Solved


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

nästan 6 år ago

Solved


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

nästan 6 år ago

Solved


Perfect square.
Determine if the input is a perfect square or not. Example - If input is 25, return 1. If input is 17, return 0.

nästan 6 år ago

Solved


World Cup 2018 Prediction!
Which team will be the winner?

nästan 6 år ago

Solved


Return area of square
Side of square=input=a Area=output=b

nästan 6 år ago

Solved


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

nästan 6 år ago

Solved


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

nästan 6 år ago

Solved


Max of a Vector
Write a function to return the max of a vector

nästan 6 år ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

nästan 6 år ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

nästan 6 år ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

nästan 6 år ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

nästan 6 år ago

Solved


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

nästan 6 år ago

Solved


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

nästan 6 år ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

nästan 6 år ago

Solved


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

nästan 6 år ago

Solved


Min of a Matrix
Return the minimum value in the given matrix.

nästan 6 år ago

Solved


surface of a spherical planet
you just discovered its circumference, that is the input.

nästan 6 år ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

nästan 6 år ago

Solved


Concatenate two strings
Its very easy. Just concatenate two strings.

nästan 6 år ago

Load more