Problema


Sky full of stars - 03
draw the following pattern with asterisks. For example, for n=6 '************' '***** *****' '**** ****' ...

oltre 4 anni fa | 2 | 28 risolutori

Risolto


provide the numerical answer to these number questions...
return a row matrix containing the sorted numbers which answer the following questions: a) what is the first Knuth number to...

oltre 4 anni fa

Risolto


Sky full of stars - 02
draw an isosceles triangle with asterisks of size n. For example, for n=6 ' * ' ' *** ' ' **...

oltre 4 anni fa

Problema


Sky full of stars - 02
draw an isosceles triangle with asterisks of size n. For example, for n=6 ' * ' ' *** ' ' **...

oltre 4 anni fa | 2 | 24 risolutori

Risolto


Sky full of stars - 01
draw a right triangle with asterisks of size n. For example, for n=5 '* ' '** ' '*** ' '**** ' ...

oltre 4 anni fa

Problema


Sky full of stars - 01
draw a right triangle with asterisks of size n. For example, for n=5 '* ' '** ' '*** ' '**** ' ...

oltre 4 anni fa | 3 | 25 risolutori

Risolto


Sieve of Eratosthenes - 02
"Sift the Two's and Sift the Three's, The Sieve of Eratosthenes. When the multiples sublime, The numbers that remain a...

oltre 4 anni fa

Problema


Sieve of Eratosthenes - 02
"Sift the Two's and Sift the Three's, The Sieve of Eratosthenes. When the multiples sublime, The numbers that remain a...

oltre 4 anni fa | 2 | 18 risolutori

Risolto


Connect Four - 04
Previous Problem <https://www.mathworks.com/matlabcentral/cody/problems/45355-connect-four-03> In addition to the previo...

oltre 4 anni fa

Problema


Connect Four - 04
Previous Problem <https://www.mathworks.com/matlabcentral/cody/problems/45355-connect-four-03> In addition to the previo...

oltre 4 anni fa | 0 | 5 risolutori

Risolto


Given a number find two variables
If the input is *x*, find *a* and *b* from the following equation: *x = a*2^b*. Hint: *b* is an integer while *x* and *a* ar...

oltre 4 anni fa

Risolto


Sum of big primes without primes
Inspired by Project Euler n°10 (I am quite obviously a fan). With problem n°250 by Doug, you can find some global methods to ...

oltre 4 anni fa

Risolto


Tribute to Ramanujan
The nth taxicab number, denoted as T(n), is defined as the smallest number that can be expressed as a sum of two positive algebr...

oltre 4 anni fa

Risolto


Path calculation with polynomials
Let a vector x be the input to our function. 1. If a value of an input vector element x is lower than 0, set this value to 0....

oltre 4 anni fa

Risolto


Fermat's last theorem - again
For a given integer n, express it as a sum of two squares if possible. Return empty matrix otherwise. Solution may not be unique...

oltre 4 anni fa

Risolto


Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

oltre 4 anni fa

Risolto


Generalized N-Cards Problem
Preface: This is a generalized version of the problem I presented <http://www.mathworks.com/matlabcentral/cody/problems/271-n-ca...

oltre 4 anni fa

Risolto


Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

oltre 4 anni fa

Risolto


Power Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that represent powers. Fo...

oltre 4 anni fa

Risolto


Back to the Future III
Marty McFly and Doc Brown are "back" again. See the test suite to see what they are up to.

oltre 4 anni fa

Risolto


Back to the future II
See test suite

oltre 4 anni fa

Risolto


Back to the future
See test suite See also: http://www.mathworks.com/matlabcentral/cody/problems/2449-back-to-the-future-ii

oltre 4 anni fa

Risolto


Mongean Shuffle : 2
Extension to <https://www.mathworks.com/matlabcentral/cody/problems/2479-mongean-shuffle problem 2479>: Determine the number...

oltre 4 anni fa

Risolto


Mongean Shuffle
A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

oltre 4 anni fa

Risolto


Calculate the h-index
H-index is a powerful tool for quantifying the scientific contribution of a researcher. H-index is defined as follows (source - ...

oltre 4 anni fa

Risolto


Get the variable value from a string and generate sum
Get the variable value from a string. Example. x = 'A=10' y = 'B=20' Result = (x+y) Result = 30

oltre 4 anni fa

Risolto


Create all combinations of vectors
This function exists in the Neural Network Toolbox but is not available in Cody. Can you write such a function? See <http://...

oltre 4 anni fa

Risolto


birthday on same day of week
Say, Mr. X's birthday is on 20th July, 2014. It was Sunday. Determine the closest year when his birthday will again be on Sunday...

oltre 4 anni fa

Risolto


Count the days
Count the occurrence of a particular day (e.g. Monday) in a given year.

oltre 4 anni fa

Problema


Count the days
Count the occurrence of a particular day (e.g. Monday) in a given year.

oltre 4 anni fa | 3 | 43 risolutori

Carica altro