o
odinpkg.dev
packages / library / odin-advent-of-code

odin-advent-of-code

e40db3blibrary

No description provided.

No license · updated 3 years ago

This is my attempt to learn odin using Advent of Code 2022! No promise that this is in any way shape or form the best way to solve any of these problems

Features used:

Day 1

  • Read File
  • Dynamic array
  • Sort an array
  • Parse int

Day 2

  • Enums
  • Switch statement

Day 3

  • Bit sets
  • Type alias

Day 4

  • Using <package>

Day 5

  • Custom structs
  • Custom iterator function

Day 6

  • Ring buffer
  • Console colors

Day 7

  • Custom iterator for Depth First Search
  • string.has_prefix function

Day 8

  • My vector2 library (idk, there isn't really anything new in this one)

Day 9

  • Nothing new, just a tricky problem

Day 10

  • String builder

Day 11

  • Least common multiple (math.lcm)

Day 12

  • Found out about odin's array programming features and added it to all vector lib and updated old days
  • Justify/pad string (in visualize_cost function)