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年弱 前
解決済み
Great Circle Distance
Find shortest between two points on a ball given their azimuthal and polar angles (in degrees) as well as the radius of the sphe...
5年弱 前
解決済み
Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...
5年弱 前
解決済み
Guess the number I'm thinking of
In this game you are competing against two other people to guess the number that I'm thinking of.
# I randomly choose an *i...
Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....
Convert a structure into a string
Convert the contents of each fields into a string.
Example with an input structure s with 2 fields :
s.age = '33'
s....
Transposition as a CIPHER
This all about transcripting a text message. If the input string is:
*s1 = 'My name is Sourav Mondal'*, then the output is: *s2...
5年弱 前
解決済み
Use of regexp
Given a string, containing several sentences, such as:
'I played piano. John played football. Anita went home. Are you safe?...
5年弱 前
解決済み
Pig Latin to English Translator
Pig latin is a faux-language based off of English. The rules are as follows (excerpted from the <http://en.wikipedia.org/wiki/Pi...
5年弱 前
解決済み
English to Pig Latin Translator
Pig latin is a faux-language based off of English. The rules are as follows (excerpted from the wikipedia entry for Pig Latin):
...
5年弱 前
解決済み
Formatting currency numbers
Given a number, format it properly for textual display using the notation $xxx,xxx,xxx.xx. Assume that no more than two digits ...
5年弱 前
解決済み
Bang Bang in Bangalore
Imagine a strange language disorder, Bangolangosis, has developed among trigonometricians of <http://en.wikipedia.org/wiki/Banga...
5年弱 前
解決済み
Compress strings (not springs)
Please remove excess space, limit one space between others, and no space before punctuation marks.
* For example, 'Trendy , ...