A collection of algorithm solutions. Mostly Python, with every language welcome.
Open for everyone: beginners, experienced developers, students, and people who don't code.
This started as my personal collection of Python solutions to problems from LeetCode, Codewars, HackerRank, CheckiO, and GeeksforGeeks.
I'm growing it into a place where the same problem is solved in many languages, so learners can compare styles side by side. Most solutions are in Python for now, and I'd love your help adding more languages.
Solutions are organized by language. Each file is named practice<n> in the order it was solved within that language's folder.
algo-solutions-python/
├── solutions/
│ ├── python/
│ │ ├── practice1.py
│ │ ├── practice2.py
│ │ └── ...
│ └── <your language>/ # any language is welcome
│ └── practice1.js
├── assets/
├── README.md
└── LICENSE
Each file includes the problem source and a short note at the top as a comment:
# Problem: Two Sum
# Source: https://leetcode.com/problems/two-sum
# Note: Used a dictionary for O(n) lookupThis repo is open for everyone. Any language, any level, no experience required. You can contribute without writing code at all.
New to open source? Start here before anything else:
First Contributions - github.com/firstcontributions/first-contributions
Prefer video? Watch this: How to contribute on GitHub (YouTube)
- Pick an open issue and comment on it to claim it
- Fork this repo
- Clone your fork and create a new branch
- Make your change
- Commit, push, and open a Pull Request
| I want to... | Look for the label |
|---|---|
| Make my first contribution | good first issue |
| Help without writing code | no-code-needed |
| Add a solution in any language | any-language |
| Improve docs or explanations | documentation |
| Help with design | design |
| Translate the README | translation |
| Spend only 5 minutes | 5-minutes |
| Be mentored through my first PR | first-timers-only |
- Add your file as
solutions/<language>/practice<next number>.<ext>, for examplesolutions/python/practice42.pyorsolutions/javascript/practice1.js - Use a lowercase language folder name (
python,javascript,typescript,java,cpp,c,csharp,go,rust,kotlin,swift,php,ruby) - The next number is the highest
practice<n>in that folder plus 1 - Add a header comment with the problem name, link, and a one-line note
- Messy but working code is welcome, and I'll help polish it in review
Don't see a folder for your language? Create it. You'll be the first contributor for it, and I'll credit you here.
Thanks to everyone who helps this collection grow.
Distributed under the MIT License. See LICENSE for details.
© 2026 Huerte
