Days 1 to 5 were made in Python
. You can use your favorite Python interpreter to run it:
cd Day1
python3 day1.py
Days 6 to 10 were made in C#
. You can compile and run the code with the .NET SDK:
cd Day5
dotnet run
I'm planning to do days 11 to 15 in C++
. I use a script run.sh
to compile and run the program. It works as follows:
cd Day11
# Create bin folder
mkdir -p bin
# Compiltion with Apple clang (need C++11 for lambdas)
clang++ day11.cpp -std=c++11 -o bin/day11
# Make executable
chmod +x ./bin/day11
# Run
./bin/day11
Feel free to use any C++ compiler. The code above should work on any Mac with XCode or clang installed.
Code should work with older versions and OS.
Program | Version |
---|---|
macOS | 13.3.1 (22E261) |
Python | 3.10.0 |
.NET | 7.0.203 (Arm64) |
clang | 14.0.3 (clang-1403.0.22.14.1) |
C++ | C++11 |