On 07/17/2011 11:48 AM, Raymond Hettinger wrote: > On Jul 17, 12:47 am, Xah Lee<xah... at gmail.com> wrote: >> i hope you'll participate. Just post solution here. Thanks. > > http://pastebin.com/7hU20NNL Ruby solution: https://gist.github.com/1087583 Kind regards robert