Advent of Code 2020 in Rust, Golang, Julia, Typescript, Python, C, Nim, C++, Dart, Zig, C#, and Swift
function writtenIn(day: number): string {
if (day === 25) return "Javascript";
const choices = [
"Rust",
"Golang",
"Julia",
"Typescript",
"Python",
"C",
"Nim",
"C++",
"Dart",
"Zig",
"C#",
"Swift",
];
return choices[(day - 1) % choices.length];
}
day | part 1 | part 2 |
---|---|---|
1 | ✅ | ✅ |
2 | ✅ | ✅ |
3 | ✅ | ✅ |
4 | ✅ | ✅ |
5 | ✅ | ✅ |
6 | ✅ | ✅ |
7 | ✅ | ✅ |
8 | ✅ | ✅ |
9 | ✅ | ✅ |
10 | ✅ | ✅ |
11 | ✅ | ✅ |
12 | ✅ | ✅ |
13 | ✅ | ✅ |
14 | ✅ | ✅ |
15 | ✅ | ✅ |
16 | ✅ | ✅ |
17 | ✅ | ✅ |
18 | ✅ | ✅ |
19 | ✅ | ✅ |
20 | ✅ | ✅ |
21 | ✅ | ✅ |
22 | ✅ | ✅ |
23 | ✅ | ✅ |
24 | ✅ | ✅ |
25 | ✅ | ✅ |
Run all with ./run.sh
. Requires:
cargo
go
julia
deno
python
gcc
nim
dart
zig
dotnet
,dotnet-script
swift