Skip to content

fishyyuser/Advent_of_code_2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ„ Advent of Code 2025 β€” Python Solutions

Welcome to my Advent of Code 2025 repository!
This repository contains Python solutions for all 12 days of Advent of Code 2025.

Each solution prioritizes correctness and clear structure, with performance considerations applied where required by the problem constraints.

🧩 Goals

  • Provide correct and complete solutions for each Advent of Code problem
  • Keep implementations readable and logically structured
  • Use appropriate algorithms and data structures per problem requirements
  • Maintain consistency across all solution files

πŸ“ Repository Structure

Advent_of_code_2025/
β”œβ”€β”€ aoc/
    β”œβ”€β”€ day01/
    β”‚   β”œβ”€β”€ part1.py
    β”‚   β”œβ”€β”€ part2.py
    β”‚   └── input.txt
    β”œβ”€β”€ day02/
    β”œβ”€β”€ ...
    β”œβ”€β”€ day12/
    └── utils/
        β”œβ”€β”€ common.py
        └── __init__.py

Each day contains:

  • part1.py β€” solution for Part 1
  • part2.py β€” solution for Part 2
  • input.txt β€” puzzle input
  • (the input helpers live inside aoc/utils/common.py)

πŸš€ Running Solutions

From the project root, run any day using module execution:

python -m aoc.dayXX.part1
python -m aoc.dayXX.part2

All solutions use Python 3.11.14.

πŸ› οΈ Python Techniques

Depending on the day, solutions may involve:

  • Graph traversal (DFS / BFS)
  • Path counting with memoization
  • Backtracking with pruning and ordering heuristics
  • Flood fill and region expansion
  • Bitmask / bitboard representations
  • Constraint satisfaction and feasibility checks
  • Greedy and problem-specific strategies
  • Connected component construction and merging
  • Grid and coordinate-based geometry
  • Shape normalization via rotation and reflection

Later problems required careful state-space reduction and performance-driven design to remain tractable.

πŸ“œ License

This project is licensed under the MIT License.

About

Daily Python solutions for Advent of Code 2025. Clean, efficient implementations with focus on problem-solving, algorithms, and readability.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages