Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamhaque/advent-of-code-2024
Deno-based solutions for Advent of Code 2024 challenges. Each day includes a unique coding puzzle solved in a structured and reusable format.
https://github.com/iamhaque/advent-of-code-2024
advent-of-code advent-of-code-2024 algorithms competitive-programming deno javascript programming-puzzles typescript
Last synced: 6 days ago
JSON representation
Deno-based solutions for Advent of Code 2024 challenges. Each day includes a unique coding puzzle solved in a structured and reusable format.
- Host: GitHub
- URL: https://github.com/iamhaque/advent-of-code-2024
- Owner: IamHaque
- Created: 2024-12-12T12:52:30.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-12-26T19:08:01.000Z (about 2 months ago)
- Last Synced: 2024-12-26T20:18:58.911Z (about 2 months ago)
- Topics: advent-of-code, advent-of-code-2024, algorithms, competitive-programming, deno, javascript, programming-puzzles, typescript
- Language: TypeScript
- Homepage: https://adventofcode.com/2024
- Size: 153 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2024 - Deno Solutions
Welcome to my **Advent of Code 2024** repository, where programming meets
holiday cheer! π Dive into this collection of fun, challenging puzzles designed
to test your problem-solving skills and spread the joy of coding. Each day's
challenge is solved in **Deno**, with a clear and consistent structure to make
navigation and replication a breeze.## **What is Advent of Code?**
Think of it as an Advent calendar, but instead of chocolates, you get daily
programming puzzles! Created by [Eric Wastl](https://adventofcode.com/about),
Advent of Code is a beloved tradition among developers of all skill levels.
Whether you're prepping for interviews, practicing algorithms, or simply
competing with friends, there's something here for everyone.### **Why Participate?**
- Sharpen your coding skills π
- Learn something new every day π
- Join a vibrant, global community πNo computer science degree? No problem! These puzzles require only basic
programming knowledge and a knack for logical thinking. Plus, every challenge is
optimized to run on hardware as old as Santa's sled (okay, maybe 10 years old
π).---
## **Folder Structure**
Hereβs how the magic is organized:
```
βββ .vscode
β βββ settings.json
βββ day_01
β βββ input.txt
β βββ main.ts
β βββ sample.txt
βββ day_02
β βββ input.txt
β βββ main.ts
β βββ sample.txt
βββ day_03
β βββ input.txt
β βββ main.ts
β βββ sample.txt
βββ day_04
β βββ input.txt
β βββ main.ts
β βββ sample.txt
β βββ sample_02.txt
β
βββ ...
β
βββ day_[x]
β βββ input.txt
β βββ main.ts
β βββ sample.txt
βββ deno.json
βββ main.ts
βββ markdown.md
βββ utils.ts
```### **Key Components**
1. **`.vscode/`:** Houses editor-specific settings to streamline development.
2. **`day_/`:** Each folder contains:
- `main.ts`: The solution script for that day.
- `input.txt`: The actual puzzle input.
- `sample.txt` (and `sample_02.txt` if provided): Sample inputs for debugging
and testing.
3. **Root-Level Files:**
- `deno.json`: Deno configuration file for smooth execution.
- `main.ts`: Entry script to run specific day solutions.
- `markdown.md`: Documentation and notes.
- `utils.ts`: Shared utility functions used across days.---
## **How to Run the Solutions**
Unwrapping a puzzle solution is as simple as running this command:
```bash
# Replace [day number] with the day you want to run
deno run start [day number]
```### **Example**
To solve Day 1βs challenge:
```bash
deno run start 1
```### **Requirements**
- Install [Deno](https://deno.land) if you havenβt already.
- Ensure `deno.json` is in the root directory for configurations.---
## **Contributing**
Collaboration is the spirit of the season! π If youβd like to contribute:
1. Fork this repository.
2. Try solving the puzzles or improving existing solutions.
3. Submit a pull request to share your ideas!Encountered an issue? Feel free to open an issue with suggestions or questions.
---
## **License**
This project is open-source and licensed under the MIT License. Check out the
LICENSE file for more details.---
Letβs code and celebrate this Advent season together. Happy solving! πβ¨