Resuelto


Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

casi 2 años hace

Resuelto


Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

casi 2 años hace

Resuelto


Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching through thi...

casi 2 años hace

Resuelto


How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are arranged in a spiral, the prime numbers contained in it form a sur...

casi 2 años hace

Resuelto


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

casi 2 años hace

Resuelto


Draw a '4' in a zero matrix!

alrededor de 2 años hace

Resuelto


Draw a '6' in a zero matrix!

alrededor de 2 años hace

Resuelto


Draw a '9' in a zero matrix!

alrededor de 2 años hace

Resuelto


Draw a '7' in a zero matrix!

alrededor de 2 años hace

Resuelto


Draw a '8' in a zero matrix!

alrededor de 2 años hace

Resuelto


Draw a '3' in a zero matrix!

alrededor de 2 años hace

Resuelto


Draw a '2' in a zero matrix!

alrededor de 2 años hace

Resuelto


Draw a '5' in a zero matrix!

alrededor de 2 años hace

Resuelto


Find x rows where the sum of the numbers is the maximum
Find x rows where the sum of the numbers is the maximum. For example: when x is 2 and m is 2 3 5 0 2 3 5 5 6 0 9 4 then y =...

alrededor de 2 años hace

Resuelto


Draw a '1' in a zero matrix!

alrededor de 2 años hace

Resuelto


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


Converts numbers into characters
Converts numbers into characters

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


to the 2 all elements
to the 2 all elements

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


Draw a '0' in a one matrix!

alrededor de 2 años hace

Resuelto


Find the next prime number
Find the next prime number or numbers for given n. For example: n = 1; out = 2; or n = [5 7]; out = [7 11]; ...

alrededor de 2 años hace

Resuelto


Make a vector of prime numbers
Input(n) - length of vector with prime numbers Output(v) - vector of prime numbers Example: * n=1; v=2 * n=3; v=[2 3 5...

alrededor de 2 años hace

Resuelto


Largest Twin Primes
<http://en.wikipedia.org/wiki/Twin_prime Twin primes> are primes p1, p2 = p1 + 2 such that both p1 and p2 are prime numbers. Giv...

alrededor de 2 años hace

Resuelto


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

alrededor de 2 años hace

Cargar más