Gelöst


Draw a '2' in a zero matrix!

12 Monate vor

Gelöst


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

12 Monate vor

Gelöst


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

12 Monate vor

Gelöst


Converts numbers into characters
Converts numbers into characters

12 Monate vor

Gelöst


Find the max element of the array
Find the max element of the array

12 Monate vor

Gelöst


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

12 Monate vor

Gelöst


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

12 Monate vor

Gelöst


to the 2 all elements
to the 2 all elements

12 Monate vor

Gelöst


the average value of the elements
Calculate the average value of the elements in the array

12 Monate vor

Gelöst


Double all elements in the array
Duplicate all elements in the array

12 Monate vor

Gelöst


calculate the length of matrix
input 1 array, calculate the length

12 Monate vor

Gelöst


Draw a '0' in a one matrix!

12 Monate vor

Gelöst


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

12 Monate vor

Gelöst


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

12 Monate vor

Gelöst


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return true if the triangle with sides a, b and c is right-...

12 Monate vor

Gelöst


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

12 Monate vor

Gelöst


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

12 Monate vor

Gelöst


Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

12 Monate vor

Gelöst


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

12 Monate vor

Gelöst


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

12 Monate vor

Gelöst


Spherical Volume
Calculate the volume of a sphere.

12 Monate vor

Gelöst


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

12 Monate vor

Gelöst


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

12 Monate vor

Gelöst


area of an annulus
Given the diameter d of the inner circle of the annulus. Given length z of a chord of the outer circle of the annulus. This chor...

12 Monate vor

Gelöst


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

12 Monate vor

Gelöst


nam2
nam

12 Monate vor

Gelöst


Multiplication
Given 2 numbers a and b mulitply them

12 Monate vor

Gelöst


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

etwa ein Jahr vor

Gelöst


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

etwa ein Jahr vor

Gelöst


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displayed ...

etwa ein Jahr vor

Mehr laden