Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Solution to Lambdaheads 2012-01-09 challenge

View gist:64db740e0d69d03d756e
1 2 3 4 5
str = [%w(YYYY MM DD), %w(YY MM DD)].map do |ss|
(1..ss.size).map { |n| ss.permutation(n).to_a }
end.flatten(2).uniq.map(&:join)
 
puts Regexp.union(str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.