Skip to content

tomaskala/aoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aoc

My solutions for Advent Of Code.

2021

The 2021 directory contains my solutions for the year 2021 in ANSI C. At the time, I didn't know C very well, and it shows. All solutions pass valgrind without errors, but there are some unnecessary heap allocations and weird constructs here and there.

2022

The 2022 directory contains my solutions for the year 2022 in the following languages, a different one per each day. I generated the list below by randomly shuffling a list of languages before this year's AoC began. This prevents me from choosing a language that would make the given task trivial.

I had to make a change, though. Originally, I had planned to solve day 11 in OCaml. After spending several hours trying to compile a piece of code that depended on the Base library, I gave up and rewrote the program in Haskell. When the user needs to install several complex build tools only to compile a simple hello world program, it's no wonder that OCaml is barely used. To keep the languages unique, I implemented day 20 in Java instead.

  1. C
  2. Bash
  3. Prolog
  4. JavaScript
  5. Elixir
  6. C++
  7. PHP
  8. Erlang
  9. Awk
  10. Fennel
  11. Haskell
  12. Go
  13. Python
  14. R
  15. Kotlin
  16. Zig
  17. Scheme
  18. Julia
  19. Ruby
  20. Java
  21. Scala
  22. Clojure
  23. C#
  24. Perl
  25. Lua

2023

The 2023 directory contains my solutions for the year 2023 in TypeScript, which I needed to learn at the time.

Installing dependencies

$ cd 2023
$ npm install

Formatting

$ npx prettier . --write

Static checks

$ npx eslint .

About

My solutions for Advent Of Code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published