Skip to content

Luminoth/advent_of_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

Tips and Tricks

  • HashSets / HashMaps, memoization, look up tables
  • Boolean HashMaps can often be done as a bitset if small enough range
  • Iterators are often faster than loops
  • Parallelization is usually a trap, there's an algorithm or pattern somewhere that should be used instead
  • nom is great for parsing inputs

Simple tricks to consider if stuck

  • Modulo lowest common multiple (lcm) when needing to maintain a divisor over a set of buckets
    • 2022/day11

Future thoughts

  • A re-usable shortest path trait or something might be really useful for a lot of problems

About

Advent of Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages