Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Solution to Lambdaheads 2012-01-09 challenge
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.