已解决


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

3 years 前

已解决


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

3 years 前

已解决


Create a vector
Create a vector from 0 to n by intervals of 2.

3 years 前

已解决


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

3 years 前

已解决


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

3 years 前

已解决


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

3 years 前

已解决


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

3 years 前

已解决


Square a Number
Given an input x, return y, which is equal to the square of x.

3 years 前

已解决


Product of Array
Given an array of numbers. Get the product of the array.

3 years 前

已解决


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

3 years 前

已解决


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

3 years 前

已解决


Remove the Zero
Given an array n, remove all zeros

3 years 前

已解决


Sum two matrices
Take two incoming matrices, and sum them

3 years 前

已解决


first element of matrix
find the first elements of a column matrix

3 years 前

已解决


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

3 years 前

已解决


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

3 years 前

已解决


square root
Find the square root (y) of an input (x).

3 years 前

已解决


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

3 years 前

已解决


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

3 years 前

已解决


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

3 years 前

已解决


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

3 years 前

已解决


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

3 years 前

已解决


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

3 years 前

已解决


modulus of a number
find the modulus of a given number

3 years 前

已解决


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

3 years 前

已解决


square of a number
find square of a given number

3 years 前

已解决


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

3 years 前

已解决


length of a vector
Find twice the length of a given vector.

3 years 前

已解决


Is my wife right?
Regardless of input, output the string 'yes'.

3 years 前

已解决


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

3 years 前

加载更多