Problem


Coin Tossing: Probability of Same Heads for N tosses
A pair of physicists toss a coin n times each. What is the probability that they tossed the same number of heads? *Input:*...

13 years ago | 1 | 57 solvers

Solved


Coin Tossing: Probability of Same Heads for N tosses
A pair of physicists toss a coin n times each. What is the probability that they tossed the same number of heads? *Input:*...

13 years ago

Solved


Sum the elements in either diagonal of a square matrix
Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal.

13 years ago

Solved


Generate pi using logarithm
Generate pi using logarithm

13 years ago

Solved


Identify the heavier bag
There are N=2^n bags of rice looking alike, N-1 of which have equal weight and one is slightly heavier. The weighing balance is ...

13 years ago

Solved


Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0;...

13 years ago

Solved


Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

13 years ago

Solved


Decrypt Polybius
Decrypt Polybius square. Please refer to <http://www.mathworks.com/matlabcentral/cody/problems/1150-polybius-square Problem 11...

13 years ago

Solved


Polybius Square
Given a string, calculate the coordinates. Input will be always in lowercase. If string is a sentence then use 0 (zero) to indic...

13 years ago

Problem


Compression: Encode and Decode
This Challenge is to compress an array created by randi(2^32-1,1000) and then decompress your data file. The first call will ...

13 years ago | 2 | 12 solvers

Solved


Compression: Encode and Decode
This Challenge is to compress an array created by randi(2^32-1,1000) and then decompress your data file. The first call will ...

13 years ago

Solved


Calculate Alcohol By Volume with Original and Final Gravity
Given an initial gravity of un-fermented wort (OG) and a final gravity of fermented wort (FG), better known as beer, it is possi...

13 years ago

Solved


Possible Outcomes of American Roulette
The payout for American roulette can be calculated by: payout = (38/n)-1 where n is the number of squares the bet covers. ...

13 years ago

Solved


Volume difference between Ellipsoid and Sphere
Given an ellipsoid of semi principal axis (a,b,c) find the volume of the difference between this ellipsoid and the sphere with...

13 years ago

Problem


Rubik's Cube: 30 Moves or Less : Contest Scoring (Time/Size/Moves)
This Challenge is to solve a thoroughly scrambled Rubik's cube with the best score (30 moves max). Score is Moves + Size/2000 + ...

13 years ago | 4 | 2 solvers

Problem


Rubik's Cube: 30 Moves or Less : Cody Size
This Challenge is to solve a thoroughly scrambled Rubik's cube with smallest code (30 moves max). Rubik's Cube can be solved ...

13 years ago | 0 | 2 solvers

Problem


Rubik's Cube: 30 Moves or Less: Minimum Avg Time
This Challenge is to solve a thoroughly scrambled Rubik's cube in the minimum time (30 moves max). Rubik's Cube can be solved...

13 years ago | 1 | 1 solver

Problem


Rubik's Cube: 30 Moves or Less : Minimum Moves
This Challenge is to solve a thoroughly scrambled Rubik's cube in the least moves (30 moves max). Rubik's Cube can be solved ...

13 years ago | 2 | 2 solvers

Problem


Knots Contest: Score (ContestSuite)
This Challenge is to Score well on the <http://www.mathworks.com/matlabcentral/contest/contests/38/rules Knots contest> test sui...

13 years ago | 0 | 2 solvers

Problem


Knots Contest: Minimum Knots (ContestSuite)
This Challenge is to Minimize the number of Knots for the <http://www.mathworks.com/matlabcentral/contest/contests/38/rules Knot...

13 years ago | 1 | 3 solvers

Solved


Knots Contest: Score (ContestSuite)
This Challenge is to Score well on the <http://www.mathworks.com/matlabcentral/contest/contests/38/rules Knots contest> test sui...

13 years ago

Solved


Knots Contest: Minimum Knots (ContestSuite)
This Challenge is to Minimize the number of Knots for the <http://www.mathworks.com/matlabcentral/contest/contests/38/rules Knot...

13 years ago

Solved


Create a recurrence matrix for a vector of data
In <https://en.wikipedia.org/wiki/Conversation_analysis conversation analysis>, it's often useful to track the contributions fro...

13 years ago

Solved


Get ranks of values in a vector
For a given vector, say [6 3 8 2], return the ranks (ascending) of observations, i.e. [3 2 4 1]. Do not worry about tied ranks. ...

13 years ago

Solved


Challenging perms function!
This problem is highly related with <http://www.mathworks.com/matlabcentral/cody/problems/1127-decrypt-a-secret-message Problem ...

13 years ago

Solved


Crossing to Kissing - Untangle the Lines
Turn lines that cross into lines that kiss. You will be given two lines that cross at some point. Your job is to untangle the...

13 years ago

Solved


Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

13 years ago

Solved


Decrypt a secret message!
The crypto system in question is based on phone keyboard. We need two numbers in order to decrypt a word. First number represent...

13 years ago

Solved


Simple return on investment
Assume you have some money and want to invest all your money to stock market. You randomly select a stock and invest all your mo...

13 years ago

Solved


Compute next 1000-day birthday milestone
Given a birthdate in DD-MMM-YYYY format, compute the next 1000-day birthday milestone. For example, Abraham Lincoln was born on ...

13 years ago

Load more