diff --git a/day06/solution01.rb b/day06/solution01.rb new file mode 100755 index 0000000..87df7e0 --- /dev/null +++ b/day06/solution01.rb @@ -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 \ No newline at end of file