Gelöst


Magnitude of a vector (★★★)
Given a vector x with values [ x1, x2, x3, ..., xn ], compute the magnitude (or length) of the vector which is given by <<htt...

mehr als 5 Jahre vor

Gelöst


Approximate functions 2 (★★★★)

mehr als 5 Jahre vor

Gelöst


Testing Problem Creation
This is where MATLAB based question will be

mehr als 5 Jahre vor

Gelöst


Check capital letters
Check if each first letter of a string is a capital letter. for example: 'This Is Ok' gives a true answer and 'This Is not Ok' ...

mehr als 5 Jahre vor

Gelöst


Convert number from given base to other base
Convert number from given base to other base. Example 400 in base 5, find equivalent number in base 8, it is 144.

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Functionality 1
It's all about functionality. *Cheating is allowed but not required*

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Back to the future II
See test suite

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Chess ELO rating system
The Elo rating system is a method for calculating the relative chess skill levels of players in competitor-versus-competitor gam...

mehr als 5 Jahre vor

Gelöst


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

mehr als 5 Jahre vor

Gelöst


Pandigital number n°1 (Inspired by Project Euler 32)
A little warm-up to begin... An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE. For ex...

mehr als 5 Jahre vor

Gelöst


Is the Point in a Circle?
Check whether a point or multiple points is/are in a circle centered at point (x0, y0) with radius r. Points = [x, y]; c...

mehr als 5 Jahre vor

Gelöst


Zero
given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero. * if a=11(1011) t...

mehr als 5 Jahre vor

Gelöst


Tribonacci Sequence
Generate the tribonacci sequence upto n

mehr als 5 Jahre vor

Gelöst


Range Testing
Range Testing. Write a function that sets y = the range of input array x

mehr als 5 Jahre vor

Gelöst


the proud tradition of zero scores in Cody
The short version is: *_your function should return a zero and also have a zero score/size_* The long version comes with a li...

mehr als 5 Jahre vor

Gelöst


self description 2.0
New (and way easier) hacking problem built upon <http://www.mathworks.com/matlabcentral/cody/problems/1969 Alfonso's problem 196...

mehr als 5 Jahre vor

Gelöst


Find my secret number
I try to hide a secret number in the workspace amongst others variables. I am paranoid so I change his value and his name a...

mehr als 5 Jahre vor

Gelöst


Singularity v5 (with apologies to the true hack masters)
Since the vast majority of recent problems are how to hack Cody, here's another one, with an even more malformed test suite than...

mehr als 5 Jahre vor

Gelöst


singularity 2.0 (really hard)
This problem is the continuation of problem <http://www.mathworks.com/matlabcentral/cody/problems/1770-singularity-2-0-harder Si...

mehr als 5 Jahre vor

Gelöst


singularity 2.0 (hard)
This problem is the continuation of problem <http://www.mathworks.com/matlabcentral/cody/problems/1769-singularity-2-0-easier Si...

mehr als 5 Jahre vor

Gelöst


Fangs of a vampire number
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such tha...

mehr als 5 Jahre vor

Gelöst


Make a list string
Given a cell string, produce a string separating the items with spaces and commas and with an 'and' preceding the final item, an...

mehr als 5 Jahre vor

Gelöst


leap year
find the number of leap years within the given time interval

mehr als 5 Jahre vor

Gelöst


Cull vector elements that contain a specified digit
Given inputs of (1) a row vector and (2) a digit, identify the elements of that vector that contain the digit, remove them, and ...

mehr als 5 Jahre vor

Gelöst


Prime Time
All you need to do here is submit your solution a prime number of seconds after the top of the hour. Any hour at all... Easy, ...

mehr als 5 Jahre vor

Gelöst


Number Persistence
A number's persistence is the number of steps required to reduce it to a single digit by multiplying all its digits to obtain a ...

mehr als 5 Jahre vor

Gelöst


How many rectangles in a grid ?
How many rectangles are there in an m × n grid ? For example, if m=1 & n=2, we have 3 rectangles.

mehr als 5 Jahre vor

Mehr laden