"Look and say" sequence
What's the next number in this sequence?
* [0]
* [1 0]
* [1 1 1 0]
* [3 1 1 0]
* [1 3 2 1 1 0]
This a variant on the w...
5 years ago
Solved
Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y.
A counting sequence is formed by "counting" the entrie...
Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...
Minefield Sonar
*Background*
In mine-hunting games (e.g. Microsoft Minesweeper), the user is provided with a covered grid that, upon a left c...
5 years ago
Solved
QWERTY Shift Encoder
Encode a string using the QWERTY shift code.
This code is where you touch type but are offset by one character to the right.
...
5 years ago
Solved
Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if
list = {'Barney Google','Snuffy Smith','Dagwood ...