Skip to content

Latest commit

 

History

History
105 lines (84 loc) · 7.83 KB

README.md

File metadata and controls

105 lines (84 loc) · 7.83 KB

🎄 Advent of Code Solutions

This repository contains my solutions to Advent of Code challenges. Advent of Code is an annual coding event with daily programming puzzles released from December 1st to December 25th.

🚀 Leaderboard Dashboard

A custom leaderboard visualization dashboard is available in the leaderboards directory. Features include:

  • Interactive JSON file upload for leaderboard data
  • Key statistics:
    • Total participants and stars
    • Median stars per participant
    • Number of participants who completed all available days
    • Number of participants who haven't started yet
  • Fastest completion times for each day
  • Visual progress tracking for each participant
  • Time-based completion graphs
  • Responsive design with dark theme
  • Scroll-to-top functionality

To use the dashboard:

  1. Go to your private leaderboard on Advent of Code
  2. Click the [JSON] link to download your leaderboard data
  3. Open leaderboards/default.html in a browser
  4. Upload your JSON file using the file picker

🚀 Solutions

2024 Progress: 25/25 ⭐⭐

Day Part 1 Part 2 Solution
Day 1 Python
Day 2 Python
Day 3 Python
Day 4 Python
Day 5 Python
Day 6 Python
Day 7 Python
Day 8 Python
Day 9 Python
Day 10 Python
Day 11 Python
Day 12 Python
Day 13 Python
Day 14 Python
Day 15 Python
Day 16 Python
Day 17 Python
Day 18 Python
Day 19 Python
Day 20 Python
Day 21 Python
Day 22 Python
Day 23 Python
Day 24 Python
Day 25 🎄 Python

Previous Years

  • 2023: Not Attempted
  • 2022: Not Attempted
  • 2021: Not Attempted
  • 2020: Not Attempted

🛠️ Running Solutions

  1. Each day's solution is in its own directory
  2. Input files are stored as input.txt in the respective day's directory
  3. Problem descriptions are in question.md files
  4. To run a solution:
    cd 2024/day-1
    python solution.py

📝 Notes

  • Solutions aim to be clear and readable rather than code-golfed
  • Each day's directory includes:
    • Solution code (solution.py)
    • Input data (input.txt)
    • Problem description (question.md)
    • Part 2 description (question-2.md) when applicable
    • Unit tests (unit_tests.py) for solutions that require them
      • Solutions with unit tests run tests before executing the actual solution
      • Tests verify both example cases and edge cases where applicable

⭐ Progress Tracking

  • ⭐ = First part completed
  • ⭐⭐ = Both parts completed
  • Blank = Not started/In progress

🔗 Links

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.


⚡ Created with ❤️ by Ricus Nortje