finished solution 1
parent
10d8a8079c
commit
10794e411f
|
@ -0,0 +1,10 @@
|
|||
#!/bin/env ruby
|
||||
|
||||
text = File.read('./input').split("\n\n")
|
||||
|
||||
text.map! do |t|
|
||||
t.delete("\n").split('').uniq.reduce(:+)
|
||||
end
|
||||
size = text.map { |t| t.length }.reduce(:+)
|
||||
|
||||
p size
|
Loading…
Reference in New Issue