Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

Practising my acquired knowledge of go.

⚠️ NOTE ⚠️ Most of these solutions are uploaded without any sort of cleanup, so lower expectations on code readibility and abstraction.

The goal is to solve each day's problems while learning a bit of go, not to come up with the optimal, cleanest solutions.

Running

For each day, copy the template/ directory and create a dayXX/ directory. Make sure to modify the package name, and in main.go replace the previous day's import.

# Include debug logs
go run debug main.go a 01

# Release mode
go run r main.go a 01

Testing

go test ./dayXX

When will I get bored?

And some notes of what I learned

  • Day1
  • Day2 - append modifies the original slice
  • Day3
  • Day4 - make sure to copy slices as there are hacky ways in which my slices can be modified due to reallocations
  • Day5
  • Day6 - oh so we cannot place obstacles in positions that the guard has already checked but is facing away from?
  • Day7
  • Day8
  • Day9
  • Day10
  • Day11
  • Day12
  • Day13
  • Day14
  • Day15
  • Day16
  • Day17
    • A
    • B - I am a bit lazy to do this one
  • Day18
  • Day19
  • Day20
  • Day21
  • Day22
  • Day23
  • Day24

About

Advent of Code 2024 in Go

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages