Skip to content

Readable Advent of Code 2022 algorithms and solutions in C language

License

Notifications You must be signed in to change notification settings

ishanpranav/advent-of-code-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022

This is a collection of solutions to the Advent of Code 2022 programming problems solved by Ishan Pranav and Iris Lim in 2024. The programs were implemented in the C programming language by Ishan Pranav.

For this project, we focus on efficient algorithms and include formal pseudocode for each solution.

Authors

Ishan Pranav and Iris Lim

Usage

These programs are cross-platform, having been tested on Windows and Linux operating systems.

Important: Do not use Windows-style line endings (CR LF, i.e. \r\n). Only use Unix-style line endings (LF, i.e. \n).

Important: There is no error-checking. An invalid input usually results in a segmentation violation.

Important: I have tested each program on the example test cases and two puzzle input files - not a large sample size! I have avoided assumptions about the input, sometimes even at the cost of performance. However, to avoid memory allocation, all buffers have fixed sizes. Ensure that all buffers (see #define statements) have sufficient capacity before running. Not doing so could result in a stack smashing, segmentation violation, or worse.

About

Readable Advent of Code 2022 algorithms and solutions in C language

Resources

License

Stars

Watchers

Forks