From: Sergio Bayona Date: 2010-02-19T01:08:28+09:00 Subject: Re: Combinatorics and permutations? Help? Sorry took so long to respond. Your solution worked as expected. Thanks! SB Josh Cheek wrote: > On Sun, Feb 7, 2010 at 9:29 PM, Sergio Bayona > wrote: > >> S >> -- >> Posted via http://www.ruby-forum.com/. >> >> > Here is a solution I have come up with (http://gist.github.com/297937). > I > don't know how you want all edge cases to be handled, I made my best > guesses, you can see them in the tests. -- Posted via http://www.ruby-forum.com/.