rubocop that
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
input = File.read('./input').split("\n\n")
|
||||
|
||||
puts input.map{|g|g.split("\n").map{|e|e.chars}.inject(:&).join.chars.uniq.count}.sum
|
||||
puts input.map { |g| g.split("\n").map(&:chars).inject(:&).join.chars.uniq.count }.sum
|
||||
|
Reference in New Issue
Block a user