Problem


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

meer dan 4 jaar ago | 2 | 28 solvers

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Problem


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

meer dan 4 jaar ago | 2 | 24 solvers

Solved


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

meer dan 4 jaar ago

Problem


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

meer dan 4 jaar ago | 3 | 25 solvers

Solved


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

meer dan 4 jaar ago

Problem


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

meer dan 4 jaar ago | 2 | 18 solvers

Solved


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

meer dan 4 jaar ago

Problem


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

meer dan 4 jaar ago | 0 | 5 solvers

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


Back to the future II
See test suite

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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://...

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Problem


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

meer dan 4 jaar ago | 3 | 43 solvers

Load more