From 0d2a3c69cdec606598d9b03732fb4fa0de4ca3ed Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Tue, 4 Dec 2018 14:18:49 +0000 Subject: [day04] part1 done --- day04/part1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day04/part1 b/day04/part1 index 91d38b4..808d5fb 100755 --- a/day04/part1 +++ b/day04/part1 @@ -24,7 +24,7 @@ end times = [] guards.each do |id, days| sum = 0 - days.each do |day| + days.each_value do |day| sum += day.count(true) end times[id] = sum -- cgit v1.2.1