All solutions in Rust
, Go
, TypeScript
, Python
and Kotlin
There is a sample run-solns.sh
script that contains
the commands to run all solutions.
To run solutions use this syntax
./run-solns.sh go 01 # run day 01 solution in Go
./run-solns.sh kotlin 02 # run day 02 solution in Go
The first argument can be
go
orgolang
for Gokt
orkotlin
for Kotlintypescript
orts
for TypeScriptrs
orrust
for Rustpy
orpython
for Rust
The second argument can be a number from 01
to 25
The Kotlin files are run via kscript
Best way is to install via https://sdkman.io
sdk install kotlin
sdk install kscript
- Kotlin
1.9.21
- kscript
4.2.3
- JRE
20.0.2+9
Rust files are run via rust-script
First install Rust (via appropriate package manager for your OS).
Then install rust-script via cargo
cargo install rust-script
- Rust
1.74.0
- rust-script
0.34.0
The TypeScript files are run via deno
Install Deno via appropriate package manager for your OS.
The Go files are run via Go's own go run
process which can
run a file like a script.
Just install Go via your package manager and get going.
- Go
1.21.0
Python scripts are run using Python 3.+
Install Python3 for your OS.
- Python
3.12.0