Skip to content

Advent of Code solutions

License

Notifications You must be signed in to change notification settings

suve/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent-of-code

Solutions for Advent of Code puzzles.

Written in several different languages, based (mostly) on what I felt like using that day and (partly) on what I thought was the best tool for solving a particular puzzle.

NOTE: Some of the solutions are of rather poor quality. Basically, as soon as I get the right answer, I drop the code and don't spend any more time on it. As such, some of the stuff you see here might quite literally be broken, as in "it worked with my input" – but might fail with yours.

Solutions

Day 2023 2022 2021 2020 2019 2018 2017
1 Bash Bash Bash SurgeScript Bash Java Bash
PHP Bash Bash SurgeScript Bash Java Bash
2 PHP Bash AWK AWK Python Java Bash
PHP Bash AWK AWK Python Java Bash
3 C C Bash AWK Go C Bash
C C PHP AWK Go C Bash
4 PHP C Rust Python Bash PHP Bash
PHP C Rust Python Bash PHP Bash
5 PHP PHP Bash Python PHP Bash
PHP PHP Bash Python PHP Bash
6 Rust C Rust C Awful C Awful
Rust C Rust C Awful C Awful
7 Rust PHP PHP PHP Python C♯ Pascal
Rust PHP PHP PHP Python C♯ Pascal
8 C PHP Rust Python PHP Awful
C PHP Bash Python PHP Awful
9 PHP C PHP Python JavaScript Pascal
PHP C PHP Python Pascal
10 PHP Rust Bash C C C
10½ PHP Rust PHP C C C
11 Rust PHP C Rust Python Awful Awful
11½ Rust PHP C Rust Python Awful Awful
12 Rust C Awful Go Bash Pascal
12½ Rust C Awful Bash Pascal
13 PHP PHP JavaScript PHP C Awful
13½ PHP PHP PHP C Awful
14 PHP C Rust PHP C C
14½ PHP C Rust PHP C C
15 PHP Rust Rust C
15½ Rust Rust C
16 Pascal PHP Go C Awful
16½ Pascal PHP C Awful
17 C Rust C PHP
17½ C Rust C PHP
18 Bash C PHP Rust Pascal
18½ Bash PHP Rust Pascal
19 PHP C C
19½ PHP C
20 C C C
20½ C C C
21 Awful Pascal
21½ Rust Pascal
22 PHP C++ C
22½ PHP C
23 Pascal C Pascal
23½ Pascal C
24 Rust Pascal C
24½ Rust C
25 C Bash Rust PHP

Stats

Language Solutions Percentage Lines of code Percentage
C 61 24.8% 4.7k 27.9%
PHP 55 22.4% 3.1k 18.2%
Rust 31 12.6% 2.8k 16.6%
Bash 31 12.6% 1.2k 7.1%
Awful 17 6.9% 1.1k 6.3%
Pascal 16 6.5% 1.6k 9.5%
Python 14 5.7% 1.2k 7.0%
AWK 6 2.4% 103 0.6%
Go 4 1.6% 475 2.8%
Java 4 1.6% 139 0.8%
C♯ 2 0.8% 288 1.7%
JavaScript 2 0.8% 75 0.4%
SurgeScript 2 0.8% 74 0.4%
C++ 1 0.4% 87 0.5%
Total 246 16.8k