Skip to content

Monthly Archives: November 2008

Splitting the Loot Freestyle

The next Ruby Tuesday will be on the 18th of November. This session will be the same problem as the last session (Splitting the Loot) but can be solved in any language you like. Discussion of the solution and the language features used in the session preferred.

Splitting the Loot with Ruby

A lot of this problem is to do with implementing the algorithm that shares the gem. The only easy aspect is that the total value of the gems must be a divisible by the number of shares. Danilo had used this problem while in South America so he already had a dojo solution that used [...]