Solved


Back to basics: adding comments to your code
One of the most useful skills a programmer can develop is the skill — or habit — of writing descriptive comments within/above th...

1 month ago

Solved


Testing for randomness: uniform distribution of integers
On Cody several problems have been set up asking players to generate one or more 'random' numbers. Usually they are asking for ...

1 month ago

Solved


Back to basics: throwing errors / exceptions
*Throwing and handling errors (or exceptions) is an important part of practical programming.* Here your task is to provide ...

1 month ago

Solved


Equilibrium
Is this tower of blocks going to fall? <<http://www.alfnie.com/software/equilibrium02.jpg>> *Description* Given a stack...

1 month ago

Solved


Logic 12

1 month ago

Solved


Logic 11

1 month ago

Solved


Logic x

1 month ago

Solved


Logic 9

1 month ago

Solved


Logic 8

1 month ago

Solved


Logic 6

1 month ago

Solved


Logic 5

1 month ago

Solved


Logic 4

1 month ago

Solved


Logic 3

1 month ago

Solved


Logic 2

1 month ago

Solved


Logic 1

1 month ago

Solved


Decipher the message - 3 key

2 months ago

Solved


Hash
eg: if x=127 and r = 5 1st digit 1+5=6; 2nd digit =2+5=7; 3rd digit = 7+5=12---> 3 (sum of digits 1+2 =3) then output y= 673 ...

2 months ago

Solved


Prouhet–Tarry–Escott (basic)
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/660-find-a-subset-that-divides-the-vector-into-equal-halves pr...

2 months ago

Solved


Modify subscripts
MATLAB supports object-oriented programming. Let's take an advantage of it in cody. This problem starts <http://uk.mathworks....

2 months ago

Solved


Modify subscripts - easier
MATLAB supports object-oriented programming. Let's take an advantage of it in cody. This problem focus on modifying subscript...

2 months ago

Solved


Open coded lock.
Guess the <hint://fliplr(anchortext) password> or break the <2314/solutions/new#test_suite_body lock>.

2 months ago

Solved


I want to know everything!
I am always a little bit paranoid. Now, I want to know what my co-workers do with my MATLAB when I am not here. Find (i...

2 months ago

Solved


Can you beat the lottery again (for hardcore coder) ?
Inspired by the Problem 1713 by Chris E. Here is the code that generates the first lottery number: rng('shuffle'); numb...

2 months ago

Solved


Number of active Cody players by date
I'm looking to start a series of problems related to web scraping. In this problem, you are given a date in 'dd mmm yyyy' format...

2 months ago

Solved


List of built-in demo images
Return a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies wh...

2 months ago

Solved


Find the maximal cliques in an undirected graph
This is a variant of a <http://www.mathworks.com/matlabcentral/cody/problems/2646-determine-the-number-of-maximal-cliques-in-an-...

2 months ago

Solved


Determine the number of maximal cliques in an undirected graph
In an undirected graph, a clique is a subset of vertices that are fully connected, i.e. there is an edge between all pairs of ve...

2 months ago

Load more