Skip to content

Commit

Permalink
Advent of Code 2024 - Day 5
Browse files Browse the repository at this point in the history
Remove unused variable
  • Loading branch information
cdalvaro committed Dec 29, 2024
1 parent 5e4c0b9 commit 130a560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puzzles/2024/day05/update_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def valid?(update:)
# @return [Array<Integer>] The updated fixed
def fix_ordering(update:)
sorted = []
update.each_with_index do |value, index|
update.each do |value|
post_values = rules[value] || []
pre_values = rules.keys.select { |key| rules[key].include?(value) }

Expand Down

0 comments on commit 130a560

Please sign in to comment.