From 06bae360a37dab5dace39f6e31497376895d2443 Mon Sep 17 00:00:00 2001 From: Patrick Michl Date: Wed, 2 Dec 2020 08:43:25 +0100 Subject: [PATCH] fix small mistake --- day_01/second.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day_01/second.rb b/day_01/second.rb index f8282b0..d76063c 100644 --- a/day_01/second.rb +++ b/day_01/second.rb @@ -4,7 +4,7 @@ input = File.read('./input').lines.map(&:to_i) input.each do |i| input.each do |j| - next if i + j > 2020 + next if i + j >= 2020 rem = 2020 - i - j if input.include? rem