Seishin's Life
  • Home
  • About Me
Sign in Subscribe

day5

Advent of Code 2022 Day 5: Supply Stacks Solutions

Advent of Code 2022 Day 5: Supply Stacks Solutions

It's day 5 of the AoC and here is my solution to the Supply Stacks puzzle: import re from copy import deepcopy with open('input', 'r') as file: input = list(file.read().split('\n\n')) def prepare(input): copy = deepcopy(input) rows = copy[0].split('\n') positions = rows[
Atanas Dimitrov Dec 5, 2022

Subscribe to Seishin's Life

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
  • Sign up
Seishin's Life © 2023. Powered by Ghost