Gelöst


Draw a '3' in a zero matrix!

etwa 3 Jahre vor

Gelöst


Draw a '2' in a zero matrix!

etwa 3 Jahre vor

Gelöst


Draw a '5' in a zero matrix!

etwa 3 Jahre vor

Gelöst


Find the Best Hotels
Given three input variables: hotels - a list of hotel names ratings - their ratings in a city cutoff - the rating at which yo...

etwa 3 Jahre vor

Gelöst


Draw a 'Z'.
Given _n_ as input, generate a n-by-n matrix like 'Z' by _0_ and _1_ . Example: n=5 ans= [1 1 1 1 1 0 0 0 1 ...

etwa 3 Jahre vor

Gelöst


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

etwa 3 Jahre vor

Gelöst


Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

etwa 3 Jahre vor

Gelöst


Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

etwa 3 Jahre vor

Gelöst


Draw 'J'
Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

etwa 3 Jahre vor

Gelöst


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

etwa 3 Jahre 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;...

etwa 3 Jahre vor

Gelöst


Converts numbers into characters
Converts numbers into characters

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre 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.

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


to the 2 all elements
to the 2 all elements

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


Draw a '0' in a one matrix!

etwa 3 Jahre vor

Gelöst


Total energy

etwa 3 Jahre vor

Gelöst


Kinetic energy calculation

etwa 3 Jahre vor

Gelöst


Laws of motion 1

etwa 3 Jahre vor

Gelöst


Laws of motion 2

etwa 3 Jahre vor

Gelöst


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

etwa 3 Jahre vor

Gelöst


Laws of motion 5

etwa 3 Jahre vor

Gelöst


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

etwa 3 Jahre vor

Gelöst


Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

etwa 3 Jahre vor

Gelöst


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

etwa 3 Jahre vor

Gelöst


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

etwa 3 Jahre vor

Mehr laden