From 3dbbab6fbe1af4250087044b982a47a7920b2852 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 8 Dec 2025 03:36:07 +0000 Subject: [PATCH] no need to current point value --- day_07/2.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/day_07/2.rb b/day_07/2.rb index 7357975..24851d8 100755 --- a/day_07/2.rb +++ b/day_07/2.rb @@ -17,9 +17,7 @@ class Main def process_graph(graph, counts) graph.each_with_index do |line, y| line.each_with_index do |char, x| - current = Point.new(x, y) - - next unless graph.at(current) == "^" + next unless char == "^" distribute_counts(x, y, counts) end