advent-of-code/2015/day-01/common.rb
Patrick Auernig 3c57921438 Refactor 2015 days 01 to 10
Split parts into separate files and remove some unused files
2021-12-08 01:05:17 +01:00

9 lines
150 B
Ruby

INPUT = File.readlines(ARGV.first, chomp: true).first.chars
def match_paren(char)
case char
when "(" then 1
when ")" then -1
end
end