My solutions to Advent of Code 2022
- Set your working directory to be within the
advent-of-code-2022
folder - Run
renv::restore()
in the R console. If you do not have therenv
package then you can install it usinginstall.packages("renv")
- Manually set your working directory to be in the folder of the question you want to run. This can be done easily within R Studio by first opening the R script you wish to run then going to
Session > Set Working Directory > To Source File Location
- Then simply run the script and the solution gets printed to the console
- To run the solution for question
<xx>
,cd
into the directory ofquestion<xx>
then runpython3 question<xx>.py
Question | Stars | Language |
---|---|---|
1 | 2 | Python3 |
2 | 2 | Python3 |
3 | 2 | R |
4 | 2 | R |
5 | 2 | R |
6 | 2 | R |
7 | 2 | R |
8 | 2 | R |
9 | 2 | Python3 |
10 | 2 | Python3 |