Skip to content

hallieswan/advent-of-code-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022

run unit tests

Introduction

Advent of Code

Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

Repository Structure

This repository's structure is based on shpikat/advent-of-code-2018.

I'm planning to include unit tests and a GitHub Action to run those tests.

Things I Learned

  • In Day 11 part 2, we will generate very large numbers. I initially tried using a BigInteger to store the values, but that wasn't effective. After looking into what others had done, I found that most people solved the question using modular arithmetic, specifically by applying the Chinese Remainder Theorem, i.e. calculate a least common multiple of all the monkey's divisors, then modulo each item's worry level by that LCM.

About

advent of code 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages