Skip to content

AfonsoCMSousa/AdventOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AdventOfCode GitRep

This repository contains my solutions for the Advent of Code challenges. Each year, I participate in the event and solve the puzzles using various programming languages and techniques.

Repository Structure

  • yearXXXX/: Contains solutions for the year XXXX. Each folder is named after the year of the Advent of Code event.

How to run:

Inside each yyyy/DayX/ directory, you can compile and run the provided C++ code using the following command:

g++ -std=c++23 -O2 ./main.cpp -o ./run

For C solutions:

gcc -O2 ./main.c -o ./run

Important

In every folder that doesnt have a Part1 and Part2 folder, change the line that says: (should be inside main.cpp)

#define __PART_2_SOLUTION 1 // 1 = Part 2 --- 0 = Part 1

About

Advent Of Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published