Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Solution to Lambdaheads 2012-01-09 challenge
str = [%w(YYYY MM DD), %w(YY MM DD)].map do |ss|
( { |n| ss.permutation(n).to_a }
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.